Jump to content

how do I run a file from a server?


Recommended Posts

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

Link to comment
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.


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

Link to comment
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")
Link to comment
Share on other sites

  • Moderators

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)
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...