Thank you, PureBasic!

Just starting out? Need help? Post your questions and find answers here.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Thank you, PureBasic!

Post by Mistrel »

There was a folder I couldn't delete in Windows Vista through Explorer or REM at the command prompt.  DeleteDirectory() worked perfectly! :D
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

Coding Questions?
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
SoulReaper
Enthusiast
Enthusiast
Posts: 372
Joined: Sun Apr 03, 2005 2:14 am
Location: England

Post by SoulReaper »

Yes there is a coding question i wonder why windows would not delete the directory and pure basic did ?

:o :wink:
User avatar
charvista
Addict
Addict
Posts: 949
Joined: Tue Sep 23, 2008 11:38 pm
Location: Belgium

Post by charvista »

Sounds like PureBasic is PureGenic :o (a pure genie)
User avatar
Michael Vogel
Addict
Addict
Posts: 2824
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

From time to time you have to be patient because a windows application locks a directory for (quite) a while - so maybe the PureBasic command just has been used at the right time :)
User avatar
pdwyer
Addict
Addict
Posts: 2813
Joined: Tue May 08, 2007 1:27 pm
Location: Chiba, Japan

Re: Thank you, PureBasic!

Post by pdwyer »

Mistrel wrote:There was a folder I couldn't delete in Windows Vista through Explorer or REM at the command prompt.  DeleteDirectory() worked perfectly! :D
Maybe just explorer blocking it.

"rem" doesn't delete anything, it's not short for "remove"

Code: Select all

C:\>rem /?
Records comments (remarks) in a batch file or CONFIG.SYS.
REM [comment]
Try "RD" or "RMDIR"

Code: Select all

C:\>rd /?
Removes (deletes) a directory.

RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path

    /S      Removes all directories and files in the specified directory
            in addition to the directory itself.  Used to remove a directory
            tree.

    /Q      Quiet mode, do not ask if ok to remove a directory tree with /S

C:\>
:)
Paul Dwyer

“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

Thanks for the tip, pdwyer. I tend forget the old DOS commands. :P
Post Reply