Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Script issue to change folder permission

  • 06-08-2015 11:50AM
    #1
    Registered Users, Registered Users 2 Posts: 7,471 ✭✭✭


    Hi Folks

    I have a work PC and am trying to free space. IT (in India) gave me a script to run to change the permissions on the folders to allow me delete them. There are many folders but the problem folder is always the same name in each subsequent folder and always in the same location within each folder in c:/chem32

    I tried running this in CMD but got an error - %%d was unexpected at this time

    Can anyone help here

    IT response below

    run the following script. This will change the folder permissions. (Adapt the correct drive letter)
    After the script was running it should be possible to delete the VcsCache folder.

    REM remove “invisiblity” of vcscaches, the input folder must be the root of instruments (it looks for vcscache exactly on the 3rd level deep)

    FOR /D %%d IN ("c:\chem32*") DO FOR /D %%b IN ("%%d\*") DO FOR /D %%c IN ("%%b\vcscache*") DO (
    if /I "%%~nxc"=="vcscache" (
    cacls "%%c" /E /R BUILTIN\Users Everyone
    echo. %%c
    ))

    Thanks


Comments

Advertisement