AutoHotkey Community

It is currently May 27th, 2012, 6:42 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Get File Name
PostPosted: July 30th, 2011, 3:39 pm 
I'm trying to make a command for a file to delete itself (obvious enough) but the issue is that I'm trying to get it to be able to delete itself if the file gets renamed or moved.

Of course there's the
Code:
SetWorkingDir %A_ScriptDir%
for when the file gets moved. I just don't know the method, and can't find it in the help file guide, of how to have a script delete itself no matter the file name.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 30th, 2011, 3:41 pm 
Offline
User avatar

Joined: October 18th, 2008, 2:09 pm
Posts: 429
why don't you just do
Code:
FileDelete %A_ScriptFullPath%
?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 30th, 2011, 3:48 pm 
Yay, now I feel like a derp-derp. 8) Thanks.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 30th, 2011, 3:54 pm 
Offline
User avatar

Joined: October 18th, 2008, 2:09 pm
Posts: 429
ZoudOffline wrote:
Yay, now I feel like a derp-derp. 8) Thanks.


no worries, was an effective question then, right?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: batto, Bing [Bot], JSLover and 60 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group