Pottery Posted February 3, 2010 Posted February 3, 2010 Hey, I need help with 1 thing. I'm trying to make a time period check and it looks like this: If _NowDate()="2/12/2010" Then MsgBox(64, "fateHook - Error", "Your trial time has run out, ask Exhalt for a new one!") FileDelete(@WorkingDir & "\loader.exe") Exit Else MsgBox(64, "fateHook - Valid", "Press OK to continue with the loading process!") EndIf The problem is, when the time runs out the message will come up, but the file won't delete. If anyone has any ideas or thoughts about the issue I would be very happy to hear them, thank you in advance for any attemps at helping me -Exhalt
Minikori Posted February 3, 2010 Posted February 3, 2010 Only thing I can think of is that loader.exe isn't in the Working Directory, but somewhere else For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com
Richard Robertson Posted February 3, 2010 Posted February 3, 2010 http://www.autoitscript.com/forum/index.php?showtopic=19370&st=40&p=199605&#entry199605
kaotkbliss Posted February 3, 2010 Posted February 3, 2010 (edited) I was beat Edited February 3, 2010 by kaotkbliss 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy!
somdcomputerguy Posted February 3, 2010 Posted February 3, 2010 Is that file running when the code is trying to delete it? If so, it can't be deleted while it is. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
Pottery Posted February 3, 2010 Author Posted February 3, 2010 Hmm, no it's in there. I did MsgBox(0, "Test", @WorkingDir) to see if it was the right command and folder, it was. Thanks for the quick response though
Pottery Posted February 3, 2010 Author Posted February 3, 2010 Oooooh, thanks snow; that's it. Noob mistake on my behalf, I guess I'll have to make a seperate file; thanks alot for the extremely fast responses!
Minikori Posted February 3, 2010 Posted February 3, 2010 Oooooh, thanks snow; that's it. Noob mistake on my behalf, I guess I'll have to make a seperate file; thanks alot for the extremely fast responses!Extremely fast, I'd say you got lucky this time There's another script in the Wrappers that makes a script delete itself, you can use that. For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com
Pottery Posted February 3, 2010 Author Posted February 3, 2010 Extremely fast, I'd say you got lucky this time There's another script in the Wrappers that makes a script delete itself, you can use that.Ok, thanks; I'll look into that
Pottery Posted February 3, 2010 Author Posted February 3, 2010 Could you tell me what the wrapper command is? Also, with the FileDelete function is it possible to permanently delete it; I tried FileDelete but the file ends up in recycling bin.
Minikori Posted February 4, 2010 Posted February 4, 2010 Could you tell me what the wrapper command is? Also, with the FileDelete function is it possible to permanently delete it; I tried FileDelete but the file ends up in recycling bin.There isn't a wrappers command. They're snippets of code to put in your script:http://www.autoitscript.com/forum/index.php?showtopic=19370 For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com
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