AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

is it okay to delete the ahk file while it's running?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
isitokay
Guest





PostPosted: Fri Mar 12, 2010 8:52 pm    Post subject: is it okay to delete the ahk file while it's running? Reply with quote

it's just read once, right, before execution? so I can delete the file once I've started the program, even while it's running? THanks.
Back to top
Murx
Guest





PostPosted: Fri Mar 12, 2010 9:12 pm    Post subject: Reply with quote

Have you tried it? Btw, kinda suspicious attempt, right!!? Confused
Back to top
Guest






PostPosted: Fri Mar 12, 2010 10:36 pm    Post subject: Reply with quote

Murx wrote:
Have you tried it? Btw, kinda suspicious attempt, right!!? Confused

the reason it's not suspicious is because it's a generated file, I'm using this in shell programming. I'm just using a filter program to generate an out.ahk then I'm executing out.ahk, but I don't want the file sticking around. So I wonder if it's okay to immediately delete out.ahk as soon as it's run?
Back to top
flyingDman



Joined: 27 Feb 2009
Posts: 690
Location: Burbank, California

PostPosted: Fri Mar 12, 2010 10:40 pm    Post subject: Reply with quote

works! (darn, had to rewrite it)
Code:
filedelete %A_ScriptFullPath%
sleep, 5000
msgbox still running...

_________________
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom" but let's start to get the data...
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Sat Mar 13, 2010 12:10 am    Post subject: Reply with quote

Murx wrote:
kinda suspicious attempt, right!!? Confused
Why i do it all the time why would it be suspicious
_________________

We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Back to top
View user's profile Send private message
Tuncay



Joined: 07 Nov 2006
Posts: 1886
Location: Germany

PostPosted: Sat Mar 13, 2010 12:23 am    Post subject: Reply with quote

yes you can delete an currently executed ahk scripts file. The file is copied to memory and executed from that. The file is needed only once at load time.
_________________
{1:"ahkstdlib", 2:"my libs", 3:"my apps", 4:"my license"}
--> Don't feed the troll! <--
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group