create a vbs file

  • Thread starter Thread starter Jim
  • Start date Start date
J

Jim

Hello,
How can I write a vbs file in windows 2000 that handles
the following?
1. Open a text file
2. jump a few lines
3. read the rest of lines and write to another file
4. exit
Any Help, of is there any news group that I can ask this?
Thanks
Jim.
 
You don't need a vbs file for such a simple task. The
following batch file will do it quite nicely:

@echo off
type c:\Jim.txt | more +5 > c:\new.txt
 
Thanks Pegasus,
I need to skip a few lines at the button too, how can I do
that?
Thanks,
Jim
 
What you're doing here is called "scope creep" . . .
AFAIK your new requirement is well outside the scope
of a batch file, as it requires counting & storing lines,
perhaps even going backwards in your text file. On
the other hand, if the lines to be skipped are
characterised by a common string then you can
use the find command to suppress them.
 
Back
Top