Jump to content
Sign in to follow this  
Splitz

saving a file to windowsdir ?

Recommended Posts

Splitz

been searching and reading the help file for a while now so i decided to post

InetGet("http://www.website.com/hello.exe", "Hello.exe", @WindowsDir)

Run("Hello.exe", @Windowsdir)

i want it to save the file to the windows directory and then run it after its been downloaded, but whenever i run the script it goes to the desktop instead, and does not run at all.

Share this post


Link to post
Share on other sites
Jos

been searching and reading the help file for a while now so i decided to post

InetGet("http://www.website.com/hello.exe", "Hello.exe", @WindowsDir)

Run("Hello.exe", @Windowsdir)

i want it to save the file to the windows directory and then run it after its been downloaded, but whenever i run the script it goes to the desktop instead, and does not run at all.

You haven't been paying much attention to the helpfile description for both commands. :D

InetGet("http://www.website.com/hello.exe", @WindowsDir & "\Hello.exe")
Run(@WindowsDir & "\Hello.exe")

Why would you want to store a file in the Windows directory?


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

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  

×