cmd/tests: Test multiple params rmdir.
This commit is contained in:
parent
9e57a09bb5
commit
414bd437a9
|
@ -430,6 +430,18 @@ if not exist foo (
|
|||
rd foo\bar
|
||||
rd foo
|
||||
)
|
||||
rem multiples directories at once
|
||||
mkdir foobaz & cd foobaz
|
||||
mkdir foo
|
||||
mkdir bar\baz
|
||||
mkdir foobar
|
||||
rd /s/q foo bar foobar
|
||||
if not exist foo (echo foo removed) else echo foo not removed!
|
||||
if not exist bar (echo bar removed) else echo bar not removed!
|
||||
if not exist foobar (echo foobar removed) else echo foobar not removed!
|
||||
if not exist bar\baz (echo bar\baz removed) else echo bar\baz not removed!
|
||||
cd ..
|
||||
rd /s/q foobaz
|
||||
|
||||
echo ------------ Testing CALL --------------
|
||||
mkdir foobar & cd foobar
|
||||
|
|
|
@ -210,6 +210,10 @@ non-empty dir not removed
|
|||
non-empty dir not removed
|
||||
recursive rmdir succeeded
|
||||
recursive rmdir succeeded
|
||||
foo removed
|
||||
bar removed
|
||||
foobar removed
|
||||
bar\baz removed
|
||||
------------ Testing CALL --------------
|
||||
foo
|
||||
foo 8
|
||||
|
|
Loading…
Reference in New Issue