Sign in to follow this  
Followers 0
AutoItiot

Using Network Paths In Install Scripts

7 posts in this topic

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

Share this post


Link to post
Share on other sites



try:

Run("\\servername\temp\install.exe")

Share this post


Link to post
Share on other sites

That doesn't seem to work.

Share this post


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

Share this post


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

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

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

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