if len(sys argv= and sys argv[ ='-help'print('usesplit py [file-to-split target-dir [chunksize]]'elseif len(sys argv interactive true fromfile input('file to be split'input if clicked todir input('directory to store part files'elseinteractive false fromfiletodir sys argv[ : args in cmdline if len(sys argv= chunksize int(sys argv[ ]absfromabsto map(os path abspath[fromfiletodir]print('splitting'absfrom'to'absto'by'chunksizetryparts split(fromfiletodirchunksizeexceptprint('error during split:'print(sys exc_info()[ ]sys exc_info()[ ]elseprint('split finished:'parts'parts are in'abstoif interactiveinput('press enter key'pause if clicked by defaultthis script splits the input file into chunks that are roughly the size of floppy disk--perfect for moving big files between the electronically isolated machines of the time most importantlybecause this is all portable python codethis script will run on just about any machineeven ones without their own file splitter all it requires is an installed python here it is at work splitting python self-installer executable located in the current working directory on windows ( 've omitted few dir output lines to save space hereuse ls - on unix) :\tempcd :\temp :\tempdir python- msi more : pm , , python- msi file( , , bytes dir( , , , bytes free :\temppython :\pp \system\filetools\split py -help usesplit py [file-to-split target-dir [chunksize] :\temppython :\ \system\filetools\split py python- msi pysplit splitting :\temp\python- msi to :\temp\pysplit by split finished parts are in :\temp\pysplit :\tempdir pysplit more : am : am : am : am , , part , , part complete system programs