Computing.Net > Forums > Windows NT > NT4 CMD: Delete directories autmatically

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

NT4 CMD: Delete directories autmatically

Reply to Message Icon

Name: Olik
Date: April 13, 1999 at 05:20:08 Pacific
Comment:

Does anybody know how to delete a directory (with subdirs and files) from NT4's command prompt, without any user interaction? "rd

/s" works like old "deltree", but you still have to supply a "yes" in order to continue. This is not desirable, since I intend to use this feature in batch files.

Perhaps one can redirect some "input" to the command, for instance something like this:
rd TEMP /s <<'y'
(I've tried a few of these with no success so far.)

Please reply to my email address as well as to the forum! Thanks!



Sponsored Link
Ads by Google

Response Number 1
Name: Anthony Brown, MCSE
Date: April 13, 1999 at 06:14:30 Pacific
Reply:

If you use rd /s /q it will remove the directories without asking if it is okay.


0
Reply to Message Icon

Related Posts

See More


Remote Boot on NT 4.0 Modem Sharing and Dual Mo...



Post Locked

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


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: NT4 CMD: Delete directories autmatically

Delete directory by date www.computing.net/answers/windows-nt/delete-directory-by-date/22069.html

Delete directory on NT4 www.computing.net/answers/windows-nt/delete-directory-on-nt4/15170.html

Deleting directories www.computing.net/answers/windows-nt/deleting-directories/18485.html