Computing.Net > Forums > Disk Operating System > delete folders using dos

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

delete folders using dos

Reply to Message Icon

Name: rocketj
Date: February 2, 2004 at 12:34:24 Pacific
OS: Windows XP Pro
CPU/Ram: Celeron 2.0 ghz
Comment:

I am trying to write a batch file to clean up residue of roaming profiles left on our machines. I have tried using the DEL command, but I can't get it to work correctly. I am trying to delete FOLDERS out of the c:\documents and settings\ folder, but I don't want to delete all directories, namely the All Users, Default User, and certain SMS folders as well. The folders that I am trying to delete are all in the same naming format (they are residue of student's profiles from here on campus). I have tried using question marks as wildcards, but that isn't working either. Any help would be great! We use WindowsXP Pro on a Win2k native domain.
Brian



Sponsored Link
Ads by Google

Response Number 1
Name: Wengier
Date: February 2, 2004 at 13:55:28 Pacific
Reply:

There is no DOS in WinXP. So if you really mean to "delete folders using DOS", then you need to install DOS, or boot your system from a DOS boot disk first.

But if you mean to delete folders using "NT System Console" (a.k.a "Command Prompt") instead of DOS, then you have answered in a wrong forum, as the rule (warning messages) of this forum says.

For more information about the "Command Prompt" (Win32 Console) in WinNT/2K/XP, you may read this page:

http://mywebpages.comcast.net/stewartb/cmdprompt.html

If you want to do so on DOS systems, you can try the DELTREE command with wildcards, which should achieve this; but on NT systems, you need to do in a different way, partly because there is no DELTREE command, and the usage of DEL command is different there.


0

Response Number 2
Name: Wengier
Date: February 2, 2004 at 14:02:37 Pacific
Reply:

For more information about this, the warning messages of this forum, and some useful links/examples, please look at these threads:

http://www.computing.net/dos/wwwboard/forum/14504.html

http://www.computing.net/dos/wwwboard/forum/14518.html


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: delete folders using dos

deleting folders in dos www.computing.net/answers/dos/deleting-folders-in-dos/7754.html

Recovering deleted file using DOS www.computing.net/answers/dos/recovering-deleted-file-using-dos/6057.html

net use LPTx: /delete error in dos/win98 www.computing.net/answers/dos/net-use-lptx-delete-error-in-doswin98/3110.html