Chris Posted April 2, 2006 Report Share Posted April 2, 2006 Minds gone blank!How do you delete subdirectories using a batch file?For example: All those sub-dirs. I can get the files within the sub-dirs to delete but not the actual sub-dir itself.Directory of K:\Application Settings\Opera Settings\profile02/04/2006 21:08 <DIR> .02/04/2006 21:08 <DIR> ..02/04/2006 19:45 <DIR> acpo02/04/2006 20:07 <DIR> cache402/04/2006 20:07 <DIR> cacheOp02/04/2006 20:07 <DIR> images02/04/2006 19:44 <DIR> keyboard02/04/2006 19:44 <DIR> menu02/04/2006 19:44 <DIR> mouse02/04/2006 20:06 <DIR> sessions02/04/2006 20:06 <DIR> Skin02/04/2006 20:06 <DIR> toolbar02/04/2006 19:44 <DIR> UnInst Quote Link to comment Share on other sites More sharing options...
Chris Posted April 2, 2006 Author Report Share Posted April 2, 2006 Got it!rmdir: in my command. Quote Link to comment Share on other sites More sharing options...
Scarecrow Man Posted April 3, 2006 Report Share Posted April 3, 2006 RD / RMDIRRemoves empty directories in MS-DOS. To delete directories with files or directories within them the user must use the deltree command, or if you are running Microsoft Windows 2000 or Windows XP use the /S option.;) ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.