VBScript to work with Powerpoint

Associate
Joined
16 Aug 2003
Posts
482
Location
Worcestershire
Hi,

I am trying to set up a VBScript that opens up a specified powerpoint file and runs the slide show. I am a complete noob to this and haven't really done any VBScripting before.

1. Firstly is it best to try and open a .ppt file and then run the show or is it best to just launch a .pps?

2. How do I go about doing either of these?

Thanks in advance!
 
ok.... I've managed to get it to work using -

Code:
Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.shell")
WSHShell.Run("c:\plasma\temp\current.pps")
WScript.sleep 20

Are there better ways of doing it than this? I found that without the 'sleep 20' the script just did nothing at all :confused:

Now what I need to do though is to rename a file as part of the script, I have tried having a search on google but can't really find any simple results.
 
Back
Top Bottom