Sign in to follow this  
Followers 0
mbkowns

Delete script on close?

10 posts in this topic

How do I delete my script when it closes?

I double click c:\go.exe

It does the below. It runs and closes but doesn't delete the file which makes sense becuase its running how do I delete it though ?

FileDelete ("c:\go.exe")

thanks

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

If you close the script, that means it's not active anymore and won't do anything. I don't think you can delete script while it's open because it's currently running.

I think you've reached a Catch 22 my friend

Edited by BALA

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites

If you close the script, that means it's not active anymore and won't do anything. I don't think you can delete script while it's open because it's currently running.

I think you've reached a Catch 22 my friend

I understand that but isn't there a way to do what I am trying here?

Share this post


Link to post
Share on other sites

Perhaps have another program open that will check to see if teh script closes, and if it does, it will delete it.


[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites

Badda-bing

that topic is very useful btw.

Share this post


Link to post
Share on other sites

I don't see what relevance this has, but okay :D

i don't see how what you just said is relevant either, but whatever.

The script i posted will DELETE THE SCRIPT THAT IS RUNNING. Be sure to save your work :P

Share this post


Link to post
Share on other sites

Sorry if I'm sounding clueless, but what script are you talking about? :P

????... the one I linked.... ???? I just checked, it's a vaild link.

Share this post


Link to post
Share on other sites

oh! that explains how it's relevant! I thought that was your name :D

I gotta get more sleep, I'm starting to see things :P


[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

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