|Here's a sample VBS, "5K.vbs) to extract 5K bytes and writes two files. A batch just needs to feed the filenames to the VBS, (as it stands now. Too lazy to write it all in VBS). Output files are in same directory, with ".5K" extension, and ".XK" extension.|
First a simple batch:
@echo off & setlocal
for %%a in ("*.txt") do cscript 5K.vbs "%%a"
Now the nominally but barely tested VBS:
'---- extract random sample from text file
message edited by nbrane