Jump to content

Using Network Paths In Install Scripts


AutoItiot
 Share

Recommended Posts

I'm trying to make an automatic install of several programs,drivers, etc. from the network, and I wanted to know if it was possible to run a program using its network path (ex. \\servername\temp\install.exe). I read on here you can map a network drive but I was hoping there was a way to go directly to file on the network. Any suggestions are appreciated.

Thanks

Link to comment
Share on other sites

Well I'm sure the path name is correct and it works from the run command line. When I try to execute this one line script I get an "Error: Unknown Command."

I tried all kinds of variables and a different error I got was when I tried:

Run("%\\Servername\temp\install.exe")

The error was "Error: Unable to expand the variables in this line. (Badly formatted)."

Maybe I'm just missing something simple but I just can't get this to work.

Link to comment
Share on other sites

  • Developers

Well I'm sure the path name is correct and it works from the run command line.  When I try to execute this one line script I get an "Error: Unknown Command."

I tried all kinds of variables and a different error I got  was when I tried:

Run("%\\Servername\temp\install.exe")

The error was "Error: Unable to expand the variables in this line. (Badly formatted)."

Maybe I'm just missing something simple but I just can't get this to work.

You have a % in the Run("%\\Servername\temp\install.exe")

try : Run("\\Servername\temp\install.exe")

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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