How to split a file into two UNEQUAL parts in windows xp?

1

I know about all the file splitting programs which split the files into equal parts.

But i need to split a file say 783kb into 2 parts

Part1 : 105kb Part2 : 680kb

is there a program to do this ? in Windows XP

Thanks

Siva

Posted 2011-04-27T10:09:41.620

Reputation: 145

For which operating system? – Majenko – 2011-04-27T10:16:09.837

for Windows XP operating system – Siva – 2011-04-27T10:25:01.200

Answers

2

You could split the file into parts of 105kB, for example using split from GNU CoreUtils for Windows, and then assemble all but the first part.


Or you could, from the same package, use head to output only the first xxx Bytes from a file to another file called myFileHead:

head -c xxx myFile > myFileHead

The same applies to tail, only writing the last xxx Bytes to a file called myFileTail:

tail -c xxx myFile > myFileTail

slhck

Posted 2011-04-27T10:09:41.620

Reputation: 182 472

Actually, I need to split a 1400mb file into Part1:115kb Part2:theremainingfile.. so this method will be consuming huge time if used.. – Siva – 2011-04-27T10:16:30.927

I doubt it, that's merely a one-liner in Bash. – slhck – 2011-04-27T10:17:29.367

the previous comment is due to editing mistake i didnt know enter submits the comment sorry – Siva – 2011-04-27T10:18:41.097

plz suggest a program ? bash is present in windows ? – Siva – 2011-04-27T10:19:15.310

@slhck any suggestions? – Siva – 2011-04-27T10:23:58.083

@Siva I edited my answer, maybe that helps. – slhck – 2011-04-27T11:40:48.800

where can i get this head and tail programs ? – Siva – 2011-04-27T12:02:59.127

From GNU core utils – slhck – 2011-04-27T12:48:42.333

@slhck: can you provide more info i couldnt make it – Siva – 2011-04-28T14:21:33.150

seems the tail syntax is wrong ? – Siva – 2011-04-28T14:51:11.273

Works for me, but maybe there's something Windows specific which I couldn't test? And head works? – slhck – 2011-04-28T15:15:23.447

head command works – Siva – 2011-04-28T17:13:03.037

I can't really help you without any further information. head and tail use exactly the same syntax. – slhck – 2011-04-28T20:26:23.203

tail doesnt work i am not sure why... can you think anyother software which can help me do this ? – Siva – 2011-04-29T13:00:13.557

Not at the moment, no, I'm sorry! – slhck – 2011-04-29T15:01:32.270