Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Delete specified multiple lines of a not in use batch file through another batch  (Read 10901 times)

0 Members and 1 Guest are viewing this topic.

D4rks1d3r

    Topic Starter


    Newbie

    • Experience: Experienced
    • OS: Windows 7
    For example let's say i have the following program:

    Code: [Select]
    @echo off

    start notepad.exe "C:\Users\Giovanni\Desktop\New folder\file1.txt"
    echo file was opened

    :flag
    start notepad.exe "C:\Users\Giovanni\Desktop\New folder\file1.txt"
    echo file was opened

    And i want to delete only the first
    Code: [Select]
    start notepad.exe "C:\Users\Giovanni\Desktop\New folder\file1.txt" and
    Code: [Select]
    echo file was opened


    How can i do that?? i'm a complete newbie so go easy on me.