1.

Solve : How to delete rows in a file with dos commands?

Answer»

I want to edit a HTML or text file. I want to delete some of the rows in this file and save it in the same directory where it existsDOS has no native commands for file editing. You can open TWO copies of Notepad and load your file into the first one. Highlight the text you wish to delete (atl-x) to cut the DATA out, then paste (alt-v) it into the second copy of Notepad. When you're done, save both files to the same directory.

Hope this helps. Have you tried the Edit utility which comes with just about every version of Win? At the C: command prompt ENTER Edit path/filename. Scroll to the line to be deleted and hit Ctrl+y to delete. After all the deletions hit File then Save to save the amended file USING the existing path/filename.

Take care - once you have deleted and saved using the original path/filename the original file will not be available - maybe you should use Save As...

Good luck



Discussion

No Comment Found