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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using cacls.exe within VBScript.

Status
Not open for further replies.

PompeyDuck

Programmer
Jun 2, 2003
1
GB
Hi,

I'm trying to check for particular user permissions on over 1500 directories, and cannot seem to get cacls.exe to pipe out the information to a file. I am on an NT Domain. My script does not error, but does not pipe the information to a txt file which I then want to read through for a certain string. I have proved that I have the permission to pipe files the the directory, as the script starts by taking a directory list and pipes that to a file, which I then read line by line and runnign a cacls against each entry.

Many thanks.

:^
 
Have you tried the StdOut or StdErr property of the WshScriptExec object ?

Hope This Help
PH.
 
PHV have the good approach.
Just have a look to FAQS. I wrote one on "how to retrieve the results of command lines", based on StdOut Property.

Happy coding
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top