Wednesday, April 30, 2008

I wanted to blog this mainly for my own edification, but I came across something I thought was very strange in the Windows command cacles.

So what's the difference between these two lines:

cacls "c:\temp" /T /G everyone:F

and

cacls "c:\temp\" /T /G everyone:F

If you were you were to point out that one doesn't have a trailing slash on the path, and one does; you would be correct.  You would also be correct if you pointed out that one works, and one doesn't.

Here is the output from the two commands:

C:\>cacls "c:\temp" /T /G everyone:F
Are you sure (Y/N)?

and

C:\>cacls "c:\temp\" /T /G everyone:F
The filename, directory name, or volume label syntax is incorrect.

Seems like such a silly limitation, maybe there is something I'm not aware of?

All comments require the approval of the site owner before being displayed.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Live Comment Preview