AutoItiot Posted April 9, 2004 Posted April 9, 2004 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
AutoItiot Posted April 21, 2004 Author Posted April 21, 2004 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.
Developers Jos Posted April 21, 2004 Developers Posted April 21, 2004 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.
AutoItiot Posted April 21, 2004 Author Posted April 21, 2004 I tried that before and I got the first error I listed. I just added in the % because I was messing around with it and I happened to get the 2nd error I listed.
AutoItiot Posted April 21, 2004 Author Posted April 21, 2004 I just found the reason and I was right: I AM an idiot. This whole time I thought I was using 3.0 but I was using 2.6.4. Sorry for the stupid questions...
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