Search found 6 matches

by deibertine
20 Jan 2011 15:55
Forum: DOS Batch Forum
Topic: Simple SMTP Batch Script
Replies: 4
Views: 10657

Re: Simple SMTP Batch Script

I think I will lean towards plink as suggested, seems to be the best match the goal I am trying to achieve.

Thanks to all who posted, really appreciate it! :D
by deibertine
18 Jan 2011 12:23
Forum: DOS Batch Forum
Topic: Simple SMTP Batch Script
Replies: 4
Views: 10657

Simple SMTP Batch Script

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...
by deibertine
20 Aug 2010 00:30
Forum: DOS Batch Forum
Topic: Batch that will cut/paste into another txt file
Replies: 8
Views: 9110

Re: Batch that will cut/paste into another txt file

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...
by deibertine
20 Aug 2010 00:20
Forum: DOS Batch Forum
Topic: Batch that will cut/paste into another txt file
Replies: 8
Views: 9110

Re: Batch that will cut/paste into another txt file

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 ...
by deibertine
20 Aug 2010 00:18
Forum: DOS Batch Forum
Topic: Batch that will cut/paste into another txt file
Replies: 8
Views: 9110

Re: Batch that will cut/paste into another txt file

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...
by deibertine
19 Aug 2010 23:11
Forum: DOS Batch Forum
Topic: Batch that will cut/paste into another txt file
Replies: 8
Views: 9110

Batch that will cut/paste into another txt file

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...