Sign in to follow this  
Followers 0
Splitz

saving a file to windowsdir ?

2 posts in this topic

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



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?


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

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