| View previous topic :: View next topic |
| Author |
Message |
isitokay Guest
|
Posted: Fri Mar 12, 2010 8:52 pm Post subject: is it okay to delete the ahk file while it's running? |
|
|
| 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
|
Posted: Fri Mar 12, 2010 9:12 pm Post subject: |
|
|
Have you tried it? Btw, kinda suspicious attempt, right!!?  |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Mar 12, 2010 10:36 pm Post subject: |
|
|
| Murx wrote: | Have you tried it? Btw, kinda suspicious attempt, right!!?  |
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
|
Posted: Fri Mar 12, 2010 10:40 pm Post subject: |
|
|
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 |
|
 |
tank
Joined: 21 Dec 2007 Posts: 3700 Location: Louisville KY USA
|
Posted: Sat Mar 13, 2010 12:10 am Post subject: |
|
|
| Murx wrote: | kinda suspicious attempt, right!!?  | 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 |
|
 |
Tuncay
Joined: 07 Nov 2006 Posts: 1886 Location: Germany
|
Posted: Sat Mar 13, 2010 12:23 am Post subject: |
|
|
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 |
|
 |
|