Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Remotely runa batch file

2 views
Skip to first unread message

BBB

unread,
Dec 7, 2009, 4:17:01 PM12/7/09
to
Looking to a simple script to remotely run a batch file. Any help will be
appreciated.
--
If you love the life you live, you will live a life of love...

Thomas Moeller Nexoe

unread,
Jan 11, 2010, 4:08:42 AM1/11/10
to
On 07-12-2009 22:17, BBB wrote:
> Looking to a simple script to remotely run a batch file. Any help will be
> appreciated.

Try this.

Dim oshell
Set oshell = CreateObject("Wscript.Shell")
oShell.Run ("""\\ServerName\FileName.bat"""), 1, True
Set oshell = Nothing

--
Best regards,

Thomas Moeller Nexoe
--------------------------------------
Website: http://www.winfrastructure.dk
Blog: http://www.winfrastructure.net

0 new messages