Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xcacls

Status
Not open for further replies.

SQLScholar

Programmer
Aug 21, 2002
2,127
0
0
GB
Hey all,

I cant work out what i am doing wrong.

If i go to cmd then type

Code:
"c:\program files\ims\xcacls.exe" "c:\program files\ims\" /G users:F

and i get back
ERROR: the filename, directory name, or volume label syntax is incorrect

Cant work out what is wrong. what i am trying to do use use Xcalc (currently stored in c:\program files\ims\ to give full access to that same directory to users (every user on the domain). I am sure i had this working ten minutes ago?

Many thanks

Dan

----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!
----------------------------------------
No D, just plank - and its not my fault
 
I don't tend to specify the location of CACLS whan i run it, i did this about 20 mins ago to alter permissions on some user folders.

cacls d:\users\test1 /t /c /g "Domain Admins":f System:f
 
porkchopexpress,

If i type

"c:\program files\ims\xcacls.exe" "c:\program files\ims\"

I get the breakdown of rights, so its not the fact i dont use the ~.

Also if i dont specify where xcacls.exe how does it know where to look (later this will be scripted so i cant transverse to it).

Thanks

Dan

----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!
----------------------------------------
No D, just plank - and its not my fault
 
Sorted it by using the vbs of xcacls rather the the EXE odd....

dan

----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!
----------------------------------------
No D, just plank - and its not my fault
 
If you open CMD and type cacls /? it will list all of the switches, it knows where the exe is. When you run CACLS from a .bat file it's just the same as the script runs in a command window.

Try it.
 
but how would it know where it is as the xcalcs is on a network path (would not have been installed on all the machines).

----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!
----------------------------------------
No D, just plank - and its not my fault
 
Sorry i've been refreing to CACLS which is located in the system32 dir not XCACLS.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top