Page 1 of 1

Thank you, PureBasic!

Posted: Tue Oct 07, 2008 12:03 am
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

Posted: Tue Oct 07, 2008 2:20 am
by Fluid Byte
Coding Questions?

Posted: Tue Oct 07, 2008 7:51 pm
by SoulReaper
Yes there is a coding question i wonder why windows would not delete the directory and pure basic did ?

:o :wink:

Posted: Tue Oct 07, 2008 11:02 pm
by charvista
Sounds like PureBasic is PureGenic :o (a pure genie)

Posted: Tue Oct 07, 2008 11:05 pm
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 :)

Re: Thank you, PureBasic!

Posted: Wed Oct 08, 2008 2:13 am
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:\>
:)

Posted: Wed Oct 08, 2008 2:25 am
by Mistrel
Thanks for the tip, pdwyer. I tend forget the old DOS commands. :P