How do you do....it? Thread, Deleting desktop.ini in Technical; Hello everyone
I don't know if I'm being ridiculously stupid, but I'm trying to create a batch file which I ...
27th August 2010, 01:34 PM #1
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:
The /S is supposed to have it search sub-directories, but when I run it, all I get is:
CD "Home Folders"
del /S /Q "desktop.ini"
It's like it's ignoring the /s command?
D:\Home Folders>del /S /Q "desktop.ini"
Could Not Find D:\Home Folders\desktop.ini
The server is running Server 2008 SP2, could this have anything to do with it?
IDG Tech News
27th August 2010, 02:19 PM #2
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.
Thanks to ZeroHour from:
Nick_Parker (27th August 2010)
30th August 2010, 06:46 PM #3
Sorry silly question. Is the path to the root of the home drive so n:\desktop.ini?
By imiddleton25 in forum Wireless Networks
Last Post: 6th May 2010, 01:15 PM
By C3sium in forum Windows 7
Last Post: 11th February 2010, 08:06 AM
By browolf in forum Windows
Last Post: 7th November 2008, 04:24 PM
By Zoom7000 in forum Windows
Last Post: 24th September 2008, 05:04 PM
By sidewinder in forum MIS Systems
Last Post: 4th October 2007, 12:10 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)