t0ddie Posted January 15, 2005 Posted January 15, 2005 what would be the best way to make a file delete itself the next time the computer boots after being restarted? Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.
DirtyBanditos Posted January 15, 2005 Posted January 15, 2005 (edited) what would be the best way to make a file delete itself the next time the computer boots after being restarted?<{POST_SNAPBACK}> Hello look on the Help files from Autoit3! FileDelete(@scriptDir & "\Test.exe")FileInstall("Test.exe", @ScriptDir & "Test.exe") Edited January 15, 2005 by DirtyBanditos
t0ddie Posted January 15, 2005 Author Posted January 15, 2005 too lazy to search, hoping to get a quick answer but, if i must Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.
Developers Jos Posted January 15, 2005 Developers Posted January 15, 2005 too lazy to search, hoping to get a quick answerbut, if i must<{POST_SNAPBACK}>search forum for "dellater" ... 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.
DirtyBanditos Posted January 15, 2005 Posted January 15, 2005 (edited) too lazy to search, hoping to get a quick answerbut, if i must<{POST_SNAPBACK}> Ok np learn Self it is better Edited January 15, 2005 by DirtyBanditos
t0ddie Posted January 15, 2005 Author Posted January 15, 2005 do i need to include a script that will delete my script? i got a script that runs a loop forever do i need to fileinstall a deletion script somewhere.... then run it on reboot? i mean i can do this guys., it just seems bulky. i would rather just use some quick easy code that will delete the script on next bootup. basically, i just want to delete the script after it has run once..... but it never will delete itself if its in an infinite loop. while 1 If Not(RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "YourFileHere.ext")) Then RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "delete.exe", "REG_SZ", @ScriptFullPath) fileinstall("c:/delete.exe") EndIF wend something like that? can it be done without using 2 scripts? Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.
Developers Jos Posted January 15, 2005 Developers Posted January 15, 2005 when you are looking for a methode to have a script kill itself then check here : #26097 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.
ezzetabi Posted January 15, 2005 Posted January 15, 2005 what would be the best way to make a file delete itself the next time the computer boots after being restarted?<{POST_SNAPBACK}>As this user says it seems she need to delete the file boottime...http://www.autoitscript.com/forum/index.php?showtopic=5888
t0ddie Posted January 16, 2005 Author Posted January 16, 2005 only to get free drinks on ladies night. Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now