.bat script question

Discussion in 'Computer Programming, Emulation, and Game Modding' started by juggernaut911, May 18, 2009.

  1. juggernaut911
    OP

    juggernaut911 GBAtemp Slut!

    Member
    4,153
    21
    Jul 13, 2006
    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
    550
    0
    Sep 15, 2008
    where I'm from
    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
    4,153
    21
    Jul 13, 2006
    United States
    I'll look into that! Thank you so much! [​IMG]