Jump to content

Delete folder and subfolders


 Share

Recommended Posts

Hello all

I try to delete a folder and all subfolders

i used the fonction DirRemove(folderpatch, 1)

In the help file, the value 1 force the remove of all subfolders

but it doesn't work

All the subfolders and files in it are wet here

So the parent folder is not deleted

Is there someone who know how can i delete all

Please help me

Keyser

Link to comment
Share on other sites

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

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

<{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.
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...