Feb 23, 2007 #1 brian32 Vendor Mar 20, 2005 35 US Hi. How do I run an executable from a share? For example, the file is located at \\server\share\file.exe I tried wshShell.Run "cmd /c dir \\server\share\file.exe", but that doesn't seem to work. If there are two ways of accomplishing this, that would help. Thanks.
Hi. How do I run an executable from a share? For example, the file is located at \\server\share\file.exe I tried wshShell.Run "cmd /c dir \\server\share\file.exe", but that doesn't seem to work. If there are two ways of accomplishing this, that would help. Thanks.
Feb 23, 2007 #2 tsuji Technical User Jul 25, 2001 10,675 US What is the "dir" there for? Upvote 0 Downvote
Feb 23, 2007 1 #3 dm4ever Technical User Jul 3, 2006 991 US In short, you should be able to simply use: wshShell.Run "\\server\share\file.exe" If you want your script to wait then you can try this: wshShell.Run "\\server\share\file.exe", 0, True http://msdn.microsoft.com/library/d...html/6f28899c-d653-4555-8a59-49640b0e32ea.asp -------------------------------------------------------------------------------- dm4ever My philosophy: K.I.S.S - Keep It Simple Stupid Upvote 0 Downvote
In short, you should be able to simply use: wshShell.Run "\\server\share\file.exe" If you want your script to wait then you can try this: wshShell.Run "\\server\share\file.exe", 0, True http://msdn.microsoft.com/library/d...html/6f28899c-d653-4555-8a59-49640b0e32ea.asp -------------------------------------------------------------------------------- dm4ever My philosophy: K.I.S.S - Keep It Simple Stupid