Jump to content

Recommended Posts

Posted

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:

 

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:

 

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!!

Posted

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 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...