-
Deleting desktop.ini
Hello everyone :)
I don't know if I'm being ridiculously stupid, but I'm trying to create a batch file which I will schedule to run every 24 hours which will delete all instances of desktop.ini from the server which has all the redirected home folders.
The code I'm using is:
Code:
D:
CD\
CD "Home Folders"
del /S /Q "desktop.ini"
The /S is supposed to have it search sub-directories, but when I run it, all I get is:
Code:
D:\Home Folders>del /S /Q "desktop.ini"
Could Not Find D:\Home Folders\desktop.ini
It's like it's ignoring the /s command?
The server is running Server 2008 SP2, could this have anything to do with it?
Thanks!!
-
I did this with a User GPP rule that deletes the file when they logon.
Just specify the path in GPP with the delete command and ensure the checkbox for "run under user context" is checked and it should do it for you.
-
Sorry silly question. Is the path to the root of the home drive so n:\desktop.ini?