| | |
Creating Batch Files in WIndows XP
Thread Solved |
•
•
Join Date: Mar 2004
Posts: 54
Reputation:
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.
![]() |
Similar Threads
- Creating batch files in windows xp (Windows NT / 2000 / XP)
- 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 Forum
- Previous Thread: Thinkpad Shutsdown but Won't restart
- Next Thread: What is an INFO file?
| Thread Tools | Search this Thread |
.net 3.5 3daccelertion 64bit 2010 a.exe activedirectory address alaris android application arm auto black blue book boot bsod bulletin canonical chinese chkdsk codeplex collaboration combofix computerfreezes deployments desktop domain drive dual error explorer fax fonts freeze gadgets hardware home intel killprocess laptop laptops latitude lcd linux mac markshuttleworth memory microsoft minimalizes mobile monitor motionle1600 netbooks opensource operatingsystems options oracle osinstallationproblem outlook partition port printer program proxy raid rds reformat remotedesktopconnection retail retrieve screen security server. sharepoint sitetositevpn slowperformance sp1 sp3 spyware studios technology ubuntu uninstall unreadable update upgrade usb verizon virtual virus vpn webos weecam window windows windows7 windowsxp xp





