Hi there, I'm trying to write a simple smtp batch script that will test relays in our multiple servers. Here's the script looks like: telnet 10.144.134.125 25 sleep 1 echo "helo localhost" sleep 1 echo "mail from:admin_net@postteam.com" sleep 1 echo "rcpt to: dei_bertine@pos...
download coreutil for windows and then you can use split command c:\test> split -l 50 file Ok I do see on whats going on with this. Basically doing this c:\test> split -l 50 file Resulted tons of file.txtaa , file.txab , file.txac so forth... and also displays the file into one line in each txtaa t...
Keep in mind that DOS always appends a line return to the end of a line, so there will be a line return at the end of line 50. This will skip blank lines in mytext.txt. setlocal enabledelayedexpansion :: Starts splitting at 0-index, that is, test0.txt instead of test1.txt. set filecounter=0 for /f ...
download coreutil for windows and then you can use split command c:\test> split -l 50 file Ok, I have heard of this So how do I input them into different files? I do c:\test> split -l 50 test1.txt test2.txt ....... This displays invalid argument. Do I need to separate c:\test1.txt c:\test2.txt in c...
I am trying to write a batch file where it will cut a bulk per line within a txt file, then cut/paste this into another new txt file. Basically what I am trying to do here is cutting the huge txt file into different txt files (i.e. test0.txt, test1.txt, test2.txt, test3.txt ....) > open txt file > c...