fireking300 Posted June 18, 2008 Share Posted June 18, 2008 Is there any command to delete the file itself? I want it to be able when I compile to .exe it delete's itself soon as you open it. Link to comment Share on other sites More sharing options...
monoceres Posted June 18, 2008 Share Posted June 18, 2008 Read the FAQQ12 Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
jokke Posted June 18, 2008 Share Posted June 18, 2008 Suggestion make an simple .bat file inn temp dir, witch deletes it after execution. UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt. Link to comment Share on other sites More sharing options...
Kip Posted June 18, 2008 Share Posted June 18, 2008 (edited) Is there any command to delete the file itself? I want it to be able when I compile to .exe it delete's itself soon as you open it.There is usually just one reason why people want to delete their own files... Edited June 18, 2008 by Kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
fireking300 Posted June 18, 2008 Author Share Posted June 18, 2008 I tryed your way Monoceres and it didnt delete the itself. Link to comment Share on other sites More sharing options...
jokke Posted June 18, 2008 Share Posted June 18, 2008 Monoceres tip inn the FAQ worked fine with a test script of mine. UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt. Link to comment Share on other sites More sharing options...
ludocus Posted June 18, 2008 Share Posted June 18, 2008 This will delete itself and delete the tempfile: #include <File.au3> $batchfile = @Tempdir&'\deleteme.bat' _FileCreate($batchfile) _FileWriteToLine($batchfile, 1, '@echo off'&@CRLF&'ping localhost -n 1 >nul'&@CRLF&'del '&FileGetShortName(@ScriptFullPath)&@CRLF&'Del %1', 1) Run ($batchfile, @WorkingDir, @SW_HIDE) exit Link to comment Share on other sites More sharing options...
rudi Posted June 19, 2008 Share Posted June 19, 2008 There is usually just one reason why people want to delete their own files...@Kip: Ah, that's why it's in the FAQ ... Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 19, 2008 Moderators Share Posted June 19, 2008 There is usually just one reason why people want to delete their own files...I use the _SelfDelete option myself, so I'm curious on what you think my one reason is whenever I use it. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Anonymouse Posted June 19, 2008 Share Posted June 19, 2008 I use the _SelfDelete option myself, so I'm curious on what you think my one reason is whenever I use it.I believe it is a good thing to use for:"I bet you can't do *this* with autoit!"'Watch me!'/they grin at free coding for malicious use/you grin at them getting a sample that deletes itself after proving your elite knowledgeORMalicious program that causes harm while leaving no traces.Am I even close? children may smile; the wise ponder- Dr. Holmes of Hardvard Medical School on an Ether BingeLove Makes The World Go Round?So does five shots of tequila. What's your point?[quote name='Valik' date='Jun 5 2008, 05:13 PM']wraithdu, 24 hours. Said I have a bad attitude, just driving the point home with a ban.[/quote]This is classic. :) Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 19, 2008 Moderators Share Posted June 19, 2008 I believe it is a good thing to use for:"I bet you can't do *this* with autoit!"'Watch me!'/they grin at free coding for malicious use/you grin at them getting a sample that deletes itself after proving your elite knowledgeORMalicious program that causes harm while leaving no traces.Am I even close?Well, if that's your thoughts, you should probably stay away from using it.I write roll out apps that launch helper executables, I could write one to maintain each of them, or I could just have them delete themselves as they finish their own tasks. The latter part of that is much easier to maintain. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Kip Posted June 19, 2008 Share Posted June 19, 2008 (edited) I use the _SelfDelete option myself, so I'm curious on what you think my one reason is whenever I use it.Anonymouse understands what I was trying to say. Edited June 19, 2008 by Kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
LongBowNZ Posted June 19, 2008 Share Posted June 19, 2008 Anonymouse understands what I was trying to say.Too bad its irrelevant. There is plenty of non-malicious reasons for SelfDelete.Make a program in autoit and have the uninstaller delete itself after its finished for one. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 19, 2008 Moderators Share Posted June 19, 2008 Anonymouse understands what I was trying to say.Yeah?See, now that makes much more sense to me. I couldn't think of any reason it would need to be used for a good purpose, since you could have a main script delete a subscript just as easily as it could write it.The only other option I could think of would be to delete freeware after a certain date, and if downloaded again have a temp file that would also delete that.Anyways, thanks for the mind expansion Happy CodingSeems to me... that you can't think of a legit reason, so there must be no legit reason? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Kip Posted June 20, 2008 Share Posted June 20, 2008 (edited) Yes, there is: Malicious program that causes harm while leaving no traces. Edited June 20, 2008 by Kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 21, 2008 Moderators Share Posted June 21, 2008 (edited) Yes, there is:Nah, again you're either not paying attention, and or are too close minded/paranoid. I said you can't think of a legit reason, therefore, in your mind, no reason can or should be legit.If it were that big of an issue, the option would be built into SciTe. Edited June 21, 2008 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
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