Sign in to follow this  
Followers 0
dbecker

how do I run a file from a server?

5 posts in this topic

I want to run a file from a server, but I'm not quite exactly sure how to go about this.

I don't really know if this is close, but this is what I've got so far.

Run (10.9.0.16 & "E:\Data Files\DavidTestFolder\XPPatch Installer.exe")

anyone have any kind of help?


"I wish I could say something that was classy and inspirational, but that just wouldn't be our style. Pain heals. Chicks dig scars. Glory lasts forever." - Shane Falco, The Replacements

Share this post


Link to post
Share on other sites



I want to run a file from a server, but I'm not quite exactly sure how to go about this.

I don't really know if this is close, but this is what I've got so far.

Run (10.9.0.16 & "E:\Data Files\DavidTestFolder\XPPatch Installer.exe")

anyone have any kind of help?

Why are you using an IP address and a drive letter, surely you do not need the IP address if you already have the drive mapped. If it was me I would map a drive then use FileGetShortName and the run the program. This is all dependant on you having the correct rights to the network folder.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

I want to run a file from a server, but I'm not quite exactly sure how to go about this.

I don't really know if this is close, but this is what I've got so far.

Run (10.9.0.16 & "E:\Data Files\DavidTestFolder\XPPatch Installer.exe")

anyone have any kind of help?

If you were doing it this way with an IP it would be Run ("\\10.9.0.16\SharedFolderName\Data Files\DavidTestFolder\XPPatch Installer.exe")

Share this post


Link to post
Share on other sites

im doing the same thing the easiest way i found to do it is to use the name of the server and the shared folder like such

Run("\\servername\sharedfolder\run.exe")

Share this post


Link to post
Share on other sites

im doing the same thing the easiest way i found to do it is to use the name of the server and the shared folder like such

Run("\\servername\sharedfolder\run.exe")

That is the easiest way, but don't forget to give it a working directory.

Run("\\servername\SharedFolderName\Data Files\DavidTestFolder\XPPatch Installer.exe", @TempDir)

Share this post


Link to post
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
Sign in to follow this  
Followers 0