Sign in to follow this  
Followers 0
eHrgo

[FileDelete] - Delete program itself?

8 posts in this topic

#1 ·  Posted (edited)

Hi,

I created a program [Copy.exe] to move few files from the ScriptDir to a specified Directory after this operation, i wan this directory to be clean of thos 6 files.....

but i have a problem, the program Copy.exe can't be remove by putting:

FileDelete ( @ScriptDir & "/Copy.exe" )

For sure, it dont work..... how can i do that? [The Script Directory isnt known].

Thanks a lot. ;)

Edited by eHrgo

Sorry for my Bad English.

Share this post


Link to post
Share on other sites



Joon: Thanks for the advice, but my program isn't name "copy.exe" it was just an example ;)

MhZ: Wow nice code, im trying to understand why it is so difficult :lmao:

Thanks


Sorry for my Bad English.

Share this post


Link to post
Share on other sites

Isn't there a SelfDelete function?

..... no comment .....

Welcome,

Have a look at the forum sticky topics. Q 12.


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

..... no comment .....

;)

Edit: I meant a predefined SelfDelete function, it pops up in Scite syntax?

Edited by mikehunt114

IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

Share this post


Link to post
Share on other sites

Edit: I meant a predefined SelfDelete function, it pops up in Scite syntax?

Yes, If you type SelfDelete and then <space key> into Scite4AutoIt3. If you search the Scite help file for SelfDelete then you will find a match to the function. If you searched the forum, then you would find a match.

My reply was based on the user posting in support without checking the sticky topics 1st, so my reference was the recognition of the sticky topic. That reply seemed suitable without the concern of which editor the person uses.

Share this post


Link to post
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
Sign in to follow this  
Followers 0