Batch \ VB scripting help needed

Associate
Joined
24 Oct 2002
Posts
2,417
Location
Cork, Ireland
Hi - I have a txt file with stuff like the following in it...

04/04/12;14:12:34;65;38;2;50;100
04/04/12;14:12:36;66;38;2;50;100
04/04/12;14:12:38;65;38;2;50;100
04/04/12;14:12:40;65;38;2;50;100
04/04/12;14:12:42;64;38;2;50;100
04/04/12;14:12:44;65;38;2;50;100
04/04/12;14:12:46;64;38;2;50;100
05/04/12;10:28:08;9;10;2;50;18
05/04/12;10:28:10;8;10;2;50;0
05/04/12;10:28:12;9;10;2;50;0
05/04/12;10:28:14;12;9;2;50;0
05/04/12;10:28:16;16;7;2;50;0
05/04/12;10:28:18;23;5;2;50;7
05/04/12;10:28:20;29;4;2;50;46
05/04/12;10:28:22;36;4;2;50;100

etc..

I have to go in to this file and make a series of other text files for each date listed (eg. 05-04-12.txt)

I have a done a little bit of scripting in the past but I'm not getting anywhere.

Would anyone be kind enough to point me in the right direction on automating this?

Many thanks,

Luke
 
Last edited:
Thanks for your help guys. Unfortunately I completely failed to explain properly.

Ideally the script would turn this..

04/04/12;14:12:34;65;38;2;50;100
04/04/12;14:12:36;66;38;2;50;100
04/04/12;14:12:38;65;38;2;50;100
04/04/12;14:12:40;65;38;2;50;100
04/04/12;14:12:42;64;38;2;50;100
04/04/12;14:12:44;65;38;2;50;100
04/04/12;14:12:46;64;38;2;50;100
05/04/12;10:28:08;9;10;2;50;18
05/04/12;10:28:10;8;10;2;50;0
05/04/12;10:28:12;9;10;2;50;0
05/04/12;10:28:14;12;9;2;50;0
05/04/12;10:28:16;16;7;2;50;0
05/04/12;10:28:18;23;5;2;50;7
05/04/12;10:28:20;29;4;2;50;46
05/04/12;10:28:22;36;4;2;50;100

into..

04-04-12.txt containing
04/04/12;14:12:34;65;38;2;50;100
04/04/12;14:12:36;66;38;2;50;100
04/04/12;14:12:38;65;38;2;50;100
04/04/12;14:12:40;65;38;2;50;100
04/04/12;14:12:42;64;38;2;50;100
04/04/12;14:12:44;65;38;2;50;100
04/04/12;14:12:46;64;38;2;50;100

and 05-04-12.txt containing
05/04/12;10:28:08;9;10;2;50;18
05/04/12;10:28:10;8;10;2;50;0
05/04/12;10:28:12;9;10;2;50;0
05/04/12;10:28:14;12;9;2;50;0
05/04/12;10:28:16;16;7;2;50;0
05/04/12;10:28:18;23;5;2;50;7
05/04/12;10:28:20;29;4;2;50;46
05/04/12;10:28:22;36;4;2;50;100
 
Back
Top Bottom