Jump to content

saving a file to windowsdir ?


Recommended Posts

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.

Link to comment
Share on other sites

  • Developers

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 etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

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