I am using ppt file to show some production numbers and stuff on a tv
in our company. Every day I have to go and get a new verion of the
ppt file and copy it to a computer and run it from there.
What I want to do is to schedule a bat file to this once a day, but
how can I close the ppt show that is running before I copy the new
file to the computer?
Regards guzti.
' PPTKill.vbs
On Error Resume Next
Set oPPT = GetObject(,"PowerPoint.Application") ' find running PPT
if Err.Number <> 0 Then wsh.echo "Cannot find PowerPoint" : wsh.quit
oPPT.ActivePresentation.Saved = True ' Tell PPT not to worry about saving
oPPT.Quit ' Exit PPT
It can be run in the scheduler, thus ...
wscript.exe pathtoscript\PPTKill.vbs
or in a batch procedure as ...
cscript.exe //nologo pathtoscript\PPTKill.vbs
A command console utility to 'kill' processes is also provided in the Windows Resource Kit - Kill.exe, but I've not used it, so I do not know it's syntax
Tom Lavedas
===========
Regards,
Kurt
"Agust Audunsson" <gu...@skyrr.is> wrote in message
news:e2fa5fb6.04070...@posting.google.com...
Using the Windows Scheduler with PowerPoint
http://www.rdpslides.com/pptfaq/FAQ00358.htm
Cheers
TAJ Simmons
microsoft powerpoint mvp
awesome - powerpoint backgrounds,
free powerpoint templates, tutorials, hints and tips etc
http://www.powerpointbackgrounds.com