Advertisement

04.13.2007 at 01:19PM PDT, ID: 22510601
[x]
Attachment Details

Script help

Asked by burstadmin in Scripting Languages, Windows Batch Scripting, Microsoft Server

Tags: cacls

I have this script that someone helped me write a few years ago.  I want to get a better understanding of what each of these functions does.  I know most of it but the (Tokens, calcs and delims) I do not.  

What this does is makes a folder shared that is read off of a txt file.  In addition to these lines I also want to know how do I remove the inhariting properties from the folder via a script?

FOR /F "tokens=1,2,3,4* delims=, " %%i IN (e:\russ\user.txt) do net share /y %%i$=e:\users\%%i
FOR /F "tokens=1,2,3,4* delims=, " %%i IN (e:\russ\user.txt) do cacls e:\users\%%i /t /c /e /g %%i:fStart Free Trial
[+][-]04.13.2007 at 01:30PM PDT, ID: 18908332

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.13.2007 at 01:48PM PDT, ID: 18908429

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.13.2007 at 01:50PM PDT, ID: 18908452

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Scripting Languages, Windows Batch Scripting, Microsoft Server
Tags: cacls
Sign Up Now!
Solution Provided By: Bartender_1
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32