Grax Posted October 26, 2007 Share Posted October 26, 2007 I need to execute an exe that's located on the network without mapping a drive. Such as "\\DOMAIN\NETLOGON\INSTALL\FILENAME.EXE" How do I do this? Run()... won't do it Run(@ComSpec... Won't do it ShellExecute()... Won't do it Suggestions? Thanks, Andrew Link to comment Share on other sites More sharing options...
weaponx Posted October 26, 2007 Share Posted October 26, 2007 Run() will do it. RunWait() will do it. ShellExecute() will too. Try: $result = FileExists("\\DOMAIN\NETLOGON\INSTALL\FILENAME.EXE") If $result Then Msgbox(0,"","File exists") Run("\\DOMAIN\NETLOGON\INSTALL\FILENAME.EXE", "\\DOMAIN\NETLOGON\INSTALL\") Else Msgbox(0,"","File doesn't exist") EndIf Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now