cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Rayner
Level 4

How to delete a line from a text file

I have attached a text file.
In that there are several lines. If you notice it has a line with RhodeSensorInstall.bat and RsViNrp.dll. I need to delete both lines. Also after deleting there should be no extra space or empty line in the deleted place.
Please help me doing that.
My actual case is, if it is a windows 7 machine i need to delete that both lines. If it is XP, we should not delete that line.
Labels (1)
0 Kudos
(1) Reply
Rayner
Level 4

In custom action and sequence we can put a condition, run this function script only if it is windows7. But it is hard to write the fuction how to delete the lines from a file.
0 Kudos