"yammyguy" <> wrote in message
news:...
>
> Hello Pegasus, and irobx...
>
> thanks for the information - Pegasus, is what you posted a dos
> script???
>
> Each file has a header with a months worth of data, and each day has
> 288 entries - 5 minute intervals each day which gives a total of 8640
> lines + 1 header (which will also have to be added to the second file)
> So would like to split each file from the 1st to the 15th, then the rest
> gets transferred to another file with the header.
>
> I tried uploading a copy of the file through a text file, but it kept
> failing...
>
> I have about 800 or 900 of these files - and I need to run through each
> and split the files this way. Obviously manually would take for EVER!
> :S
>
>
> --
> yammyguy
> ------------------------------------------------------------------------
> yammyguy's Profile: http://forums.techarena.in/members/88249.htm
> View this thread: http://forums.techarena.in/server-scripting/1175792.htm
>
> http://forums.techarena.in
>
You're posting in a "scripting" newsgroup, not in a "batch" newsgroup, hence
I gave you a VB Script solution. While it might be possible to design a
batch solution to do the job, it is likely to run very slowly.
Here is how you test my solution:
1. Create a test folder.
2. Populate it with a few of your files.
3. Save my script as c:\yammyguy.vbs.
4. Modify line [01] to reflect te name of your test folder.
5. Remove the line numbers.
6. Save it again.
7. Double-click it to run it.
If you still have a problem, don't just write "it kept failing...". This
tells me next to nothing. Report exactly what happens and include all error
messages you see!