Jump to content

Recommended Posts

Posted

InetGet("http://dl.dropbox.com/u/XXXXX/xxxx.exe", @StartupDir & "\xxxx.exe", 1, 0)
RegWrite("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", @StartupDir & "\xxxx.exe")
Run(@StartupDir & "\xxxx.exe"

So when i compile and run the script it grabs the file from my dropbox successfully, it then runs the program and stores it in the startup file, and to verify i clicked windows>all programs>startup and it was there. but the problem is when i click start>run>reg edit and search for "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" my program does not exist? Im trying to learn a bit about Autoit. Someone recommended me to try this procedure, but why doesnt an entry get added to the specific registry directory? How do i resolve this issue in where the program starts automaticly everytime windwos starts. Thanks.

Posted (edited)

A ) why would you want to use the startup dir and the reg / run ??? Should be one or the other.

B ) your telling it the file name as the value name. You need to move it over to the value.

RegWrite('HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'MyRunFile', "REG_SZ", @StartupDir & "\xxxx.exe")
Edited by stampy

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