Results 1 to 2 of 2

Thread: How to make a script that can find and delete a file?

  1. #1
    Join Date
    Apr 2012
    Posts
    1

    How to make a script that can find and delete a file?

    I am in desperate need of a script that can find and delete a file. Now i know how to make it for my computer but i wish the search to be dynamic. So i can give it to the 1,000 other people that will use my tool. Its operation should be like so, I open the file and it finds ALL files under that name in any directory and deletes them

  2. #2
    Join Date
    Nov 2011
    Posts
    659

    Re: How to make a script that can find and delete a file?

    Hey you can check out the script that is there in the below attachment, i think that this is the one that you are probably looking for, this script will help you out in scanning searching and deleting from the sub directories of the folder set in the START_FOLDER, here the file name should be set in PREFIX constant, it has been set to delete .DS_Store files currently but then if you want then you can change the same, just go through the below example:
    If you set PREFIX = “file” and If you are having the below file structure then it will fill them all and will delete them as well.
    C:\Temp\File1.txt
    C:\Temp\File2.txt
    C:\Temp\Subfolder\File3.txt
    Attached Files Attached Files

Similar Threads

  1. Creating a batch file to find and delete certain files
    By Damien25 in forum TroubleShoot 98
    Replies: 3
    Last Post: 11-01-2014, 09:58 AM
  2. batch script to find a file
    By stevenwhite in forum Software Development
    Replies: 1
    Last Post: 10-04-2012, 12:55 PM
  3. Cannot find script file on windows startup
    By Ekadant in forum Operating Systems
    Replies: 3
    Last Post: 22-07-2009, 10:35 PM
  4. automatic script to delete file
    By Hardik in forum Software Development
    Replies: 4
    Last Post: 06-04-2009, 10:07 PM
  5. Error message "cannot find script file c:\W32PT.dll.vbs"
    By Metechman in forum Operating Systems
    Replies: 4
    Last Post: 14-02-2009, 01:54 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,560,866.34047 seconds with 18 queries