keyser Posted August 16, 2005 Share Posted August 16, 2005 Hello allI try to delete a folder and all subfoldersi used the fonction DirRemove(folderpatch, 1)In the help file, the value 1 force the remove of all subfoldersbut it doesn't workAll the subfolders and files in it are wet hereSo the parent folder is not deletedIs there someone who know how can i delete allPlease help meKeyser Link to comment Share on other sites More sharing options...
keyser Posted August 16, 2005 Author Share Posted August 16, 2005 i have resolve my issue by a fichier batch with command rd /S /Q folder this command dos delete folder, files and all subfolders if someone konw another issue Link to comment Share on other sites More sharing options...
BigDod Posted August 16, 2005 Share Posted August 16, 2005 DirRemove works for me, are you sure you are using it correctly Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
rakudave Posted August 16, 2005 Share Posted August 16, 2005 if the compiled exe-file is located in the same folder you'd like to delete it won't work, cause currently executed programms can't be deleted. but the subdir's shoud vanish anyway... Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
blindwig Posted August 16, 2005 Share Posted August 16, 2005 i have resolve my issue by a fichier batchwith command rd /S /Q folderthis command dos delete folder, files and all subfoldersif someone konw another issue<{POST_SNAPBACK}>RD /S /Q will not work on windows 98 or NT 4.0. I don't know about ME or 2000. The older versions of windows used the DELTREE command instead. My UDF Threads:Pseudo-Hash: Binary Trees, Flat TablesFiles: Filter by Attribute, Tree List, Recursive Find, Recursive Folders Size, exported to XMLArrays: Nested, Pull Common Elements, Display 2dSystem: Expand Environment Strings, List Drives, List USB DrivesMisc: Multi-Layer Progress Bars, Binary FlagsStrings: Find Char(s) in String, Find String in SetOther UDF Threads I Participated:Base64 Conversions Link to comment Share on other sites More sharing options...
rmorrow Posted August 16, 2005 Share Posted August 16, 2005 Windows 9x-based systems:cd <dir> del /s/q *.* cd .. rd <dir> Windows NT-based systems:del /f/s/q <dir>\*.* rd <dir> I'm sure there's some DLL that's been around since Win95 that would probably provide an object-oriented way to do this. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now