Jump to content

Execute a Network exe?


Grax
 Share

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...