Solved

vbscript

Posted on 2011-03-10
5
794 Views
Last Modified: 2012-05-11
I need a vbscript to run a power point SHOW. It is not a slide show(.ppt). It is in  .pps format and the location is in C:\test.pps

Thanks,
Paul
0
Comment
Question by:pauledwardian
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 5

Assisted Solution

by:sweeps
sweeps earned 200 total points
ID: 35097155
Dim wsh
Set wsh = CreateObject("Wscript.Shell")
wsh.Run "powerpnt /s C:\test.ppt"  
0
 
LVL 12

Expert Comment

by:Amick
ID: 35097166
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "cmd /c .\documents\test.ppsx"
0
 
LVL 5

Expert Comment

by:sweeps
ID: 35097188
OOps..  put ppt instead of pps .  sorry.  
0
 
LVL 12

Accepted Solution

by:
Amick earned 300 total points
ID: 35097192
The above was set up against my testing environment,  I should have edited it to match your request as follows:
set WshShell = WScript.CreateObject("WScript.Shell") 
WshShell.Run "cmd /c  C:\test.pps" 

Open in new window


One could also use a regular batch file containing the single line:
c:\test.pps

Open in new window

0
 

Author Closing Comment

by:pauledwardian
ID: 35132011
good comments
0

Featured Post

Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question