•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Windows NT / 2000 / XP / 2003 section within the Tech Talk category of DaniWeb, a massive community of 402,411 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,051 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Windows NT / 2000 / XP / 2003 advertiser: Programming Forums
Views: 5638 | Replies: 2 | Solved
![]() |
•
•
Join Date: Mar 2004
Posts: 54
Reputation:
Rep Power: 5
Solved Threads: 0
Im trying to create a batch file to remove a directory in Windows XP, obviously it asks whether you want to delete the directory yes or no, but i want it to delete automatically without it prompting me everytime for the yes/no, i have tried many switches like DEL /y & DEL | Y & a few more but none work for XP , is there anyway to get round this?
Hi,
You can use the rd command. Syntax is as follows:-
rd /s /q foldername
/s => Delete all files and subfolders in addition to the folder itself.
/q => Quiet - do not display Y/N confirmation. Assumes "Yes" as answer.
More info:-
http://www.ss64.com/nt/rd.html
By the way, in Windows 98/ME, you can use deltree command. Syntax is as follows:-
deltree/y foldername
/y => Do not display Y/N confirmation. Assumes "Yes" as answer.
You can use the rd command. Syntax is as follows:-
rd /s /q foldername
/s => Delete all files and subfolders in addition to the folder itself.
/q => Quiet - do not display Y/N confirmation. Assumes "Yes" as answer.
More info:-
http://www.ss64.com/nt/rd.html
By the way, in Windows 98/ME, you can use deltree command. Syntax is as follows:-
deltree/y foldername
/y => Do not display Y/N confirmation. Assumes "Yes" as answer.
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
-Albert Einstein.
-Albert Einstein.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Windows NT / 2000 / XP / 2003 Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
antivirus apple browser choose computer crack debian defender dell development download fiji hoax install internet leopard linux media microsoft mobile news office open operating os photo reactos registry research root security server software source spyware survey system technology torvalds tweaks ubuntu unix upgrade virus vista volume windows windows update windows vista xp
- Creating batch files in windows xp (Windows NT / 2000 / XP / 2003)
- Question about DOS Batch Files (Legacy and Other Languages)
- How to Rename Multiple Files with Windows Explorer (Windows tips 'n' tweaks)
Other Threads in the Windows NT / 2000 / XP / 2003 Forum
- Previous Thread: Thinkpad Shutsdown but Won't restart
- Next Thread: What is an INFO file?


Linear Mode