Self file after exit or working dir. delete + refresh

Just starting out? Need help? Post your questions and find answers here.
abc123
Enthusiast
Enthusiast
Posts: 195
Joined: Wed Apr 18, 2007 9:27 pm

Self file after exit or working dir. delete + refresh

Post 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
eJan
Enthusiast
Enthusiast
Posts: 366
Joined: Sun May 21, 2006 11:22 pm
Location: Sankt Veit am Flaum

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

Post 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
abc123
Enthusiast
Enthusiast
Posts: 195
Joined: Wed Apr 18, 2007 9:27 pm

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

Post 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 :!:
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

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

Post 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
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
abc123
Enthusiast
Enthusiast
Posts: 195
Joined: Wed Apr 18, 2007 9:27 pm

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

Post 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...?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

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

Post 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
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
abc123
Enthusiast
Enthusiast
Posts: 195
Joined: Wed Apr 18, 2007 9:27 pm

Post 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?
Randy Walker
Addict
Addict
Posts: 1058
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

Re:

Post 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
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Post Reply