CACLS

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

I am needingt to run the cacls command to clear up some permission issues.
It seems to work fine against the volume in question, but it stops at
folders containing names with spaces (....\example of spaces\*). If I run
the cacls against this same folder using this format, ....\exampl~1\*, is
works fine.

I need to run the cacls from the root with a wild card (*), how can I get
arround this.

Thanks
 
Hi, Mark.

Enclose the folder names with quotes. The quotes have to go around the
entire "fully qualified filename", including the pathname. I know nothing
of CACLS, but these are the general rules for long filenames.

Examples:
example of spaces - won't work
"example of spaces" - will work
C:\"example of spaces" - won't work
"C:\example of spaces" - will work
C:\parent\"example of spaces" - won't work
"C:\parent\example of spaces" - will work

And, of course, "C:\parent\example of *" should work, too. But it might not
produce what you're looking for. It will give you a list of all the folders
(and files) in \parent that start with "example of", but not of the files
within such folders. But that's not because of the spaces in "example of
spaces"; you would have similar problems if you had multiple folders with
short names without spaces, like example1, example2, etc., and tried to list
their files with a command like: dir example* or dir example*\*

RC
 
Back
Top