Results 1 to 2 of 2

Thread: Delete "variable folders"

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2008
    Posts
    1

    Delete "variable folders"

    When I shutdown the computer, I want to run a script (by the policy) that deletes all the folders with the next name in it:
    C:\Documents and Settings\*.Domeinnaan.*
    The first * can be any name, the second * can be 000, 001, 002, 003 etc.
    I found a script that deletes a folder by the name that you give:

    dim filesys, demofolder
    set filesys = CreateObject ("Scripting.FileSystemObject")
    set demofolder = filesys.GetFolder("C:\temp")
    demofolder.Delete

    But now, I want to throw away all the folders that I named before

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Delete "variable folders"

    Thread moved from the FAQ forum, which is not the place to post your questions.

Posting Permissions

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



Click Here to Expand Forum to Full Width