+ 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
    117
    Thank Post
    2
    Thanked 2 Times in 2 Posts
    Rep Power
    17

    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. #2
    ricki's Avatar
    Join Date
    Jul 2005
    Location
    uk
    Posts
    1,477
    Thank Post
    20
    Thanked 164 Times in 157 Posts
    Rep Power
    52
    Hi is this what you are after

    Findstr (all text) in file and dele

    Richard

  3. #3

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

  4. #4

    Join Date
    Jan 2007
    Location
    Nottinghamshire
    Posts
    530
    Thank Post
    1
    Thanked 84 Times in 58 Posts
    Rep Power
    38
    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

  5. #5

    Join Date
    Jan 2007
    Location
    Nottinghamshire
    Posts
    530
    Thank Post
    1
    Thanked 84 Times in 58 Posts
    Rep Power
    38
    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, 11:08 PM
  2. Replies: 2
    Last Post: 17th April 2008, 12:25 PM
  3. Replies: 5
    Last Post: 9th March 2008, 01:15 AM
  4. Replies: 1
    Last Post: 21st December 2007, 07:27 PM
  5. Replies: 15
    Last Post: 19th September 2007, 11: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
  •