Page 1 of 1

Split file in windows

Posted: Tue May 25, 2010 8:06 pm
by kpsita
Hi,

Can anyone please tell me the command to split a file in windows.The file is a .tar file and the size is 12gb.I have to split this to a 2gb file because my user limit for a file is 2gb.

Thanks for you help.

Posted: Tue May 25, 2010 8:17 pm
by chulett
There is no native Windows command for that, however you should have the MKS Toolkit installed and thus access to UNIX commands like split. You can also find utilities people have written for Windows that cut files up, something called 'Chainsaw' springs to mind, but it has been years since I've used it.

Curious, though, what do you plan to do with a hacked up tar file on your Windows server? :?

Posted: Tue May 25, 2010 8:27 pm
by ray.wurlod
No can do. While you can split the file into 2GB chunks, each chunk will be irrecoverable. The tar archive must be intact before it can be unpacked.

Posted: Tue May 25, 2010 9:44 pm
by chulett
Hence my question.

Posted: Wed May 26, 2010 12:32 am
by gaurav_shukla
Unpack it and then split it, with tools available in market...
again zip it ..
Tedious but the only one...

Posted: Wed May 26, 2010 2:22 am
by Sainath.Srinivasan
You can run the untar command and pipe it to split command. But there will be a risk of breakdown.

Btw, did you check the possibility of RAR files - if all you wanted was to have split compressed files ?