Re: Xcacls - Recusive script on folders and subfolders - Dummy question !!!

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks again.
But if I do that the command will still go to the last directory.
how can I do just for (C:\*\*) and stop there ?


"David Candy" <.> wrote in message
news:O2i87SzPFHA.1176@xxxxxxxxxxxxxxxxxxxxxxx
for /d %A in (*) do cacls "%A\*.*" >"%userprofile%\desktop\%~nA.txt"
for /d %A in (C:\windows\*) do cacls "%A\*.*"
>"%userprofile%\desktop\%~nA.txt"

--
----------------------------------------------------------

" Mathew" <matthieu_in_hk@xxxxxxxxxxx> wrote in message
news:%23UxrxZxPFHA.2972@xxxxxxxxxxxxxxxxxxxxxxx
> Just another question.
> Can you tell me how to change your script to level 2 in folder
architecture
> only ( or how to be able to parameter the folder and subfolder level )?
>
> It would be a great help
>
> Cheers
> Mathew
>
> "David Candy" <.> wrote in message
> news:e#0SYinPFHA.2524@xxxxxxxxxxxxxxxxxxxxxxx
> for /r %A in (.) do cacls "%A\*.*" > "%userprofile%\desktop\%~nA.txt"
>
> --
> ----------------------------------------------------------
>
> " Mathew" <matthieu_in_hk@xxxxxxxxxxx> wrote in message
> news:uvpL9HmPFHA.3408@xxxxxxxxxxxxxxxxxxxxxxx
>> Hello,
>>
>> I need to execute the cmd xcacls on one folder and each subfolders (until
>> the end) and save the result to a different file for each subfolder.
>> how can I script that ?
>>
>> I've never written any scripts... Please help me...
>> Sorry for this question but it would be a great help if you could help
me.
>>
>> Cheers,
>> Matthieu
>>
>>
>
>


.



Relevant Pages

  • Re: One for the NTFS permissions gurus.
    ... user logs-on the script creates a new subfolder based on the username. ... What I want to do is to set the permissions on the parent folder (the shared ... but other users have no rights. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: script to find all files in folder/subfolders
    ... folder, including sub-folders but I can't get the subfolder part to work. ... Set colFiles = objWMIService.ExecQuery _ ... good reason to use a VB Script to perform the task. ...
    (microsoft.public.windows.server.scripting)
  • Re: creating folder tree structures
    ... SUBFOLDER B ... to end the script. ... particular folder structure is setup in our file servers. ... and I think I should get this setup as it's ...
    (microsoft.public.scripting.vbscript)
  • Re: creating folder tree structures
    ... Set fso = CreateObject ... SUBFOLDER B ... So that ONLY "Folder 1" name is ... to end the script. ...
    (microsoft.public.scripting.vbscript)
  • Re: User account and Personal folder mismatch script
    ... I believe you want a script that can be run by an administrator that will ... The script above only documents if a home folder has been assigned. ... > End Sub ...
    (microsoft.public.scripting.vbscript)