Page 1 of 1

Self file after exit or working dir. delete + refresh

Posted: Sun Jun 03, 2007 8:06 pm
by abc123
Hi again, i search the forums but had no luck.

My question is,

Is there a way to self delete file after exit?

or

Is there a way to delete the working folder after exit?

And the other question is that is there a way to refresh the desktop, after i createdirectory the directory isn't visible until i refresh the desktop?

Thanks

Re: Self file after exit or working dir. delete + refresh

Posted: Sun Jun 03, 2007 8:40 pm
by eJan
abc123 wrote:And the other question is that is there a way to refresh the desktop, after i createdirectory the directory isn't visible until i refresh the desktop?
Open: http://www.purearea.net/pb/CodeArchiv/English.html
and search for: RefreshDesktopIcons.pb

Re: Self file after exit or working dir. delete + refresh

Posted: Sun Jun 03, 2007 8:50 pm
by abc123
eJan wrote:
abc123 wrote:And the other question is that is there a way to refresh the desktop, after i createdirectory the directory isn't visible until i refresh the desktop?
Open: http://www.purearea.net/pb/CodeArchiv/English.html
and search for: RefreshDesktopIcons.pb
Thanks eJan :!:

Re: Self file after exit or working dir. delete + refresh

Posted: Sun Jun 03, 2007 9:43 pm
by PB
> Hi again, i search the forums but had no luck.
> Is there a way to self delete file after exit?

It's in the FAQ: http://www.purebasic.fr/english/viewtopic.php?t=4876

Re: Self file after exit or working dir. delete + refresh

Posted: Sun Jun 03, 2007 9:57 pm
by abc123
PB wrote:> Hi again, i search the forums but had no luck.
> Is there a way to self delete file after exit?

It's in the FAQ: http://www.purebasic.fr/english/viewtopic.php?t=4876
Thanks PB, didn't come up search results though.

Now i only need to know how to delete working directory after exit...?

Re: Self file after exit or working dir. delete + refresh

Posted: Sun Jun 03, 2007 10:02 pm
by PB
> Thanks PB, didn't come up search results though

It does if you search for "delete running exe", but I guess you do need to
know what to actually search for.

> Now i only need to know how to delete working directory after exit...?

http://www.purebasic.com/documentation/ ... ctory.html

Posted: Sun Jun 03, 2007 10:23 pm
by abc123
It doesn't delete the working directory of the exe while it is running, what i am trying to do is delete the file and folder it is in after exit, any help?

Re:

Posted: Sat Aug 30, 2025 3:50 am
by Randy Walker
abc123 wrote: Sun Jun 03, 2007 10:23 pm It doesn't delete the working directory of the exe while it is running, what i am trying to do is delete the file and folder it is in after exit, any help?
I figure by now you have found your solution but just in case OR if anyone else is searching for a solution to delete your own EXE and the working directory it is in:
viewtopic.php?t=87381