AutoHotkey Community

It is currently May 27th, 2012, 5:33 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: March 12th, 2010, 9:52 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 12th, 2010, 10:12 pm 
Have you tried it? Btw, kinda suspicious attempt, right!!? :?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 12th, 2010, 11:36 pm 
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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 12th, 2010, 11:40 pm 
Offline

Joined: February 27th, 2009, 9:11 am
Posts: 693
Location: Burbank, California
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...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 13th, 2010, 1:10 am 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
Murx wrote:
kinda suspicious attempt, right!!? :?
Why i do it all the time why would it be suspicious

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 13th, 2010, 1:23 am 
Offline

Joined: November 7th, 2006, 9:47 pm
Posts: 1934
Location: Germany
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! <--


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: dra, HotkeyStick, rbrtryn, XstatyK and 64 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