1. juggernaut911

    OP juggernaut911 GBAtemp Slut!
    Member

    Joined:
    Jul 13, 2006
    Messages:
    4,165
    Country:
    United States
    Okay so I'm creating a script that will delete file names that are listed in a file called contents.txt

    Contents.txt
    Code:
    a.as
    b.as
    [.code]
    
    I want the script to delete the file name of Contents.txt so this would happen:
    
    folder\a.as
    folder\b.as
    folder\contents.txt
    
    to end up as:
    
    folder\contents.txt
    
    which I will have deleted after it is parsed.
    
    Please help! URGENT!
     
  2. kjean

    kjean GBAtemp Advanced Fan
    Member

    Joined:
    Sep 15, 2008
    Messages:
    550
    Country:
    This example below is no recursive, means only for single folder, and require grep. Better methods will be welcomed.

    OK, grab Binaries and Dependencies of "grep" from HERE and extract it somewhere you like, in this example it's in C:\GREP\

    Contents.bat
    Voila!
     
  3. juggernaut911

    OP juggernaut911 GBAtemp Slut!
    Member

    Joined:
    Jul 13, 2006
    Messages:
    4,165
    Country:
    United States
    I'll look into that! Thank you so much! [​IMG]
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - question, script,