Jump to content

Recommended Posts

Posted

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

Posted

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
Posted

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

Posted

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.

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...