Delete specified multiple lines of a not in use batch file through another batch file?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
D4rks1d3r
Posts: 1
Joined: 03 Apr 2021 15:02

Delete specified multiple lines of a not in use batch file through another batch file?

#1 Post by D4rks1d3r » 03 Apr 2021 15:15

for example let's say i have the following program:

Code: Select all

@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 all

start notepad.exe "C:\Users\Giovanni\Desktop\New folder\file1.txt"
and

Code: Select all

echo file was opened
how can i do that?? Thanks.

Post Reply