quick cmd prompt question
-
Ok, this is bugging me. Say i have this dir:
test
folder1
hello
goodbye
folder2
hello
goodbyeThose are all folders. Now, say i want to delete all folders called 'hello'. How would i do this? I tried piping a dir command into the del command:
dir /A: D /s hello | del
but that didnt work. any one got a tip? *.* cin >> knowledge; -
Ok, this is bugging me. Say i have this dir:
test
folder1
hello
goodbye
folder2
hello
goodbyeThose are all folders. Now, say i want to delete all folders called 'hello'. How would i do this? I tried piping a dir command into the del command:
dir /A: D /s hello | del
but that didnt work. any one got a tip? *.* cin >> knowledge;try piping it to a rmdir command. I have not tried it myself. :-)
-
try piping it to a rmdir command. I have not tried it myself. :-)
-
Ok, this is bugging me. Say i have this dir:
test
folder1
hello
goodbye
folder2
hello
goodbyeThose are all folders. Now, say i want to delete all folders called 'hello'. How would i do this? I tried piping a dir command into the del command:
dir /A: D /s hello | del
but that didnt work. any one got a tip? *.* cin >> knowledge; -
This will work. for /R %i in (hello) DO rd %i If you are new to DOS, believe it or not, it is a DOS command.:)
-
This will work. for /R %i in (hello) DO rd %i If you are new to DOS, believe it or not, it is a DOS command.:)