.bat script question

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

May 18, 2009

.bat script question by juggernaut911 at 6:35 AM (630 Views / 0 Likes) 2 replies

  1. juggernaut911
    OP

    Member juggernaut911 GBAtemp Slut!

    Joined:
    Jul 13, 2006
    Messages:
    4,153
    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

    Member kjean GBAtemp Advanced Fan

    Joined:
    Sep 15, 2008
    Messages:
    550
    Location:
    where I'm from
    Country:
    Korea, South
    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

    Member juggernaut911 GBAtemp Slut!

    Joined:
    Jul 13, 2006
    Messages:
    4,153
    Country:
    United States
    I'll look into that! Thank you so much! [​IMG]
     

Share This Page