Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 804
  • Last Modified:

vbscript

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
pauledwardian
Asked:
pauledwardian
  • 2
  • 2
2 Solutions
 
sweepsCommented:
Dim wsh
Set wsh = CreateObject("Wscript.Shell")
wsh.Run "powerpnt /s C:\test.ppt"  
0
 
AmickCommented:
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "cmd /c .\documents\test.ppsx"
0
 
sweepsCommented:
OOps..  put ppt instead of pps .  sorry.  
0
 
AmickCommented:
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
 
pauledwardianAuthor Commented:
good comments
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now