+ Post New Thread
Results 1 to 5 of 5
Windows Thread, Script to delete Desktop ini from users folders in Technical; Hey there, im after a way of deleting all my users desktop.ini files without manaual searching and deleting them ? ...
  1. #1
    tri_94's Avatar
    Join Date
    Feb 2007
    Location
    Lincolnshire
    Posts
    114
    Thank Post
    2
    Thanked 1 Time in 1 Post
    Rep Power
    14

    Script to delete Desktop ini from users folders

    Hey there, im after a way of deleting all my users desktop.ini files without manaual searching and deleting them ?

    batch file or script that can search subfolders and delete them, so i can schedule it to run

    thanks
    nick

  2. IDG Tech News
  3. #2
    ricki's Avatar
    Join Date
    Jul 2005
    Location
    uk
    Posts
    1,425
    Thank Post
    19
    Thanked 159 Times in 152 Posts
    Rep Power
    49
    Hi is this what you are after

    Findstr (all text) in file and dele

    Richard

  4. #3

    Join Date
    Jan 2007
    Location
    Nottinghamshire
    Posts
    473
    Thank Post
    1
    Thanked 80 Times in 54 Posts
    Rep Power
    31
    If you want to stop them reappearing, use FSRM, then you can just delete them once with a normal explorer search

  5. #4

    Join Date
    Jan 2007
    Location
    Nottinghamshire
    Posts
    473
    Thank Post
    1
    Thanked 80 Times in 54 Posts
    Rep Power
    31
    Just found a problem with this, Vista/7 network recycle bin uses a desktop.ini file, and you can't search for it in explorer. So you can't move those files anywhere without deleting all the recycle bin special folders

  6. #5

    Join Date
    Jan 2007
    Location
    Nottinghamshire
    Posts
    473
    Thank Post
    1
    Thanked 80 Times in 54 Posts
    Rep Power
    31
    New solution: 2 bat files

    psexec \\dc01 filescrn screen modify /path:e:\users /typeassive
    psexec \\dc02 filescrn screen modify /path:e:\users /typeassive

    and again with /type:active after doing what you need

SHARE:
+ Post New Thread

Similar Threads

  1. Script to delete certain folders
    By Pumaedition in forum Scripts
    Replies: 4
    Last Post: 22nd April 2008, 10:08 PM
  2. Replies: 2
    Last Post: 17th April 2008, 11:25 AM
  3. Replies: 5
    Last Post: 9th March 2008, 12:15 AM
  4. Replies: 1
    Last Post: 21st December 2007, 06:27 PM
  5. Replies: 15
    Last Post: 19th September 2007, 10:46 PM

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
  •