$input = $CmdLine[1]
$bytes = 1000000 ; 1000000 for 1 MB, 1000 for 1 KB
$size = FileGetSize($input)
$file = fileopen($input, 16)
$max = ceiling($size / $bytes)
for $i = 1 to $max
$data = fileread($file, $bytes)
$output = $input & '_' & $i & 'of' & $max
filewrite($output, $data)
next
^file split
file path for a 20MB "video.mp4" is input, it will be output as "video.mp4_1of20", "video.mp4_2of20", etc. change $bytes to affect the split files size, this example made them 1MB (10^6 bytes)
$input = $CmdLine[1]
$name = stringt