The original syntax questioned by Clayton had the correct syntax. In two
tries you've changed it so it wouldn't work.

 

It is never proper at the command line to use two switches in succession
without separating them with spaces.

 

So it is like these:

 

rmdir g:\test1 /s /q

rmdir /s /q g:\test1

 

The above will eliminate test1 completely.  If you wish to retain an empty
test1 folder then:

 

            cd /d g:\test1

            rd . /s /q

 

Carl

 

From: Erik Goldoff [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2008 10:00 AM
To: NT System Admin Issues
Subject: RE: Slightly OT DOS Syntax Q

 

like this ?  :

 

G:\>rmdir g:\test1\*.* /s/q
The filename, directory name, or volume label syntax is incorrect.

 


Erik Goldoff


IT  Consultant

Systems, Networks, & Security 

 

 

  _____  

From: James Rankin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2008 9:48 AM
To: NT System Admin Issues
Subject: Re: Slightly OT DOS Syntax Q

Don't you need to specify the directory path?

2008/10/28 Erik Goldoff <[EMAIL PROTECTED]>

when I tried it I got 

 

G:\test1>rmdir *.* /s
*.*, Are you sure (Y/N)? y
The filename, directory name, or volume label syntax is incorrect.

 

I *DID* try it first, so now you know why I suspect it of not working .... (
on an XP sp2 system )


Erik Goldoff


IT  Consultant

Systems, Networks, & Security 

 

 

 

 

 

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to