+ Post New Thread
Results 1 to 3 of 3
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 ...
  1. #1
    Nick_Parker's Avatar
    Join Date
    Jan 2008
    Location
    Dainfern, South Africa
    Posts
    440
    Thank Post
    95
    Thanked 18 Times in 13 Posts
    Rep Power
    17

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

  2. #2

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,743
    Thank Post
    913
    Thanked 1,333 Times in 813 Posts
    Blog Entries
    1
    Rep Power
    447
    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.

  3. Thanks to ZeroHour from:

    Nick_Parker (27th August 2010)

  4. #3
    ful56_uk's Avatar
    Join Date
    Mar 2008
    Location
    Essex
    Posts
    562
    Thank Post
    105
    Thanked 25 Times in 22 Posts
    Rep Power
    19
    Sorry silly question. Is the path to the root of the home drive so n:\desktop.ini?

SHARE:
+ Post New Thread

Similar Threads

  1. gpt.ini permissions problem
    By imiddleton25 in forum Wireless Networks
    Replies: 2
    Last Post: 6th May 2010, 12:15 PM
  2. Window 7 And Dekstop.ini
    By C3sium in forum Windows 7
    Replies: 4
    Last Post: 11th February 2010, 07:06 AM
  3. customsettings.ini
    By browolf in forum Windows
    Replies: 1
    Last Post: 7th November 2008, 03:24 PM
  4. Deleting Desktop Clutter
    By Zoom7000 in forum Windows
    Replies: 9
    Last Post: 24th September 2008, 04:04 PM
  5. HELP with FMS installation - fmsconnect.ini??
    By sidewinder in forum MIS Systems
    Replies: 5
    Last Post: 4th October 2007, 11:10 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •