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

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
>
>



Re: Unloading and reloading Powerpoint Help by Miyahn

Miyahn
Sat Feb 18 07:29:24 CST 2006

"Nate" wrote in message news:bPEJf.21898$_S7.21227@newssvr14.news.prodigy.com
> What I have so far....How do I load a specific file within PPT and start the
> show?

How about this? (Not tested)

Const strComputer = "192.168.1.2"
Const strPPTPath = "\\SomeServer\SomeShare\Demo.ppt"
With CreateObject("PowerPoint.Application", strComputer)
.Visible = True
With .Presentations.Open(strPPTPath)
.SlideShowSettings.Run
End With
End With

--
Miyahn (Masataka Miyashita) JPN
Microsoft MVP for Microsoft Office - Excel(Jan 2006 - Dec 2006)
HQF03250@nifty.ne.jp


Re: Unloading and reloading Powerpoint Help by Nate

Nate
Sun Feb 19 18:46:28 CST 2006

Thanks, will try this with just a little 'tweeking'
Nate

"Miyahn" <HQF03250@nifty.ne.jp> wrote in message
news:%23XQBU7INGHA.3960@TK2MSFTNGP09.phx.gbl...
> "Nate" wrote in message
> news:bPEJf.21898$_S7.21227@newssvr14.news.prodigy.com
>> What I have so far....How do I load a specific file within PPT and start
>> the
>> show?
>
> How about this? (Not tested)
>
> Const strComputer = "192.168.1.2"
> Const strPPTPath = "\\SomeServer\SomeShare\Demo.ppt"
> With CreateObject("PowerPoint.Application", strComputer)
> .Visible = True
> With .Presentations.Open(strPPTPath)
> .SlideShowSettings.Run
> End With
> End With
>
> --
> Miyahn (Masataka Miyashita) JPN
> Microsoft MVP for Microsoft Office - Excel(Jan 2006 - Dec 2006)
> HQF03250@nifty.ne.jp
>