Re: Unloading and reloading Powerpoint Help by Nate
Nate
Sat Feb 18 06:55:35 CST 2006
What I have so far....How do I load a specific file within PPT and start the
show?
'----Start of script----
strComputer = "192.168.1.2"
strProcess = "POWERPNT.EXE"
wscript.echo "Terminating ", strProcess ," On remote computer", strComputer
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& "strComputer" & "\root\cimv2")
Set colProcess = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = '" & strProcess & "'" )
For Each objProcess in colProcess
objProcess.Terminate()
next
'---Restart PowerPoint-----
WScript.Sleep(5000)
Set objPowerPoint = CreateObject("PowerPoint.Application")
objPowerPoint.Visible = True
WScript.Echo "Your task completed at: " & Now
'-----End script----
"Nate" <coffeefein24@hotmail.com> wrote in message
news:7NwJf.9081$rL5.5037@newssvr27.news.prodigy.net...
> Wondering if VBS would unload and then launch a .ppt and start the show on
> a remote computer? It's in the basement and viewed on remote tv's
> throughout building.
> MS Powerpoint 2003 w/(sp3) if it makes a difference.
>
> Thanks
> Nate
>
>