Search found 9 matches

by Prezident
04 Jan 2011 22:38
Forum: DOS Batch Forum
Topic: Need help with :echo function
Replies: 9
Views: 7121

Re: Need help with :echo function

Not a problem at all really... Just had to install .Net 3.5 on that machine.

Thanks.
by Prezident
04 Jan 2011 14:51
Forum: DOS Batch Forum
Topic: Need help with :echo function
Replies: 9
Views: 7121

Re: Need help with :echo function

I figured it out... It was .NET 3.5 missing from the non-working machine.
by Prezident
04 Jan 2011 14:35
Forum: DOS Batch Forum
Topic: Need help with :echo function
Replies: 9
Views: 7121

Re: Need help with :echo function

Ran into a little problem. When attempting to use colecho.exe on a different machine I'm getting the following error message: "The system cannot execute the specified program." Are there any special requirements or configuration needed to run colecho.exe? I've been trying to run down any d...
by Prezident
29 Dec 2010 20:01
Forum: DOS Batch Forum
Topic: batch file help
Replies: 7
Views: 7622

Re: batch file help

My mistake... See, I still learn new stuff all the time. I've seen it used different ways and never quite understood why some have == and some don't.

Thanks again aGerman. :)
by Prezident
29 Dec 2010 16:47
Forum: DOS Batch Forum
Topic: batch file help
Replies: 7
Views: 7622

Re: batch file help

You could try either of the following: if errorlevel 1 ( goto :restart ) else ( start mailsend -v -f some@email.here -d mailserver here -smtp smtp server here -p 25 -t some@email.here -sub Camera_Status_Report -y text -a d:\badhost.log ) Or this: if errorlevel 0 ( start mailsend -v -f some@email.her...
by Prezident
29 Dec 2010 16:20
Forum: DOS Batch Forum
Topic: Need help with :echo function
Replies: 9
Views: 7121

Re: Need help with :echo function

aGerman wrote:OK, I'm a member of another website with a c++ forum.
Try:
http://www.lingubender.com/forum/viewtopic.php?f=5&t=833

Regards
aGerman


Very nice. This works perfectly for what I need. Thank you so much.
by Prezident
29 Dec 2010 13:51
Forum: DOS Batch Forum
Topic: batch file help
Replies: 7
Views: 7622

Re: batch file help

You could first search the file with find or findstr for any word you know should be there and check the errorlevel to decide if the email should be sent. FIND /i "Destination host unreachable" badhost.log>nul if errorlevel 0 ( email log file ) else ( don't email log file ) Would that work...
by Prezident
29 Dec 2010 13:43
Forum: DOS Batch Forum
Topic: Need help with :echo function
Replies: 9
Views: 7121

Re: Need help with :echo function

Thanks for the reply. There are two solutions I can think. - You could change the default size for all command windows. OK, I just spent a while trying every variant of this I could think of with no success but I just came up with some other thought so I will try those too and see what happens, but ...
by Prezident
28 Dec 2010 15:11
Forum: DOS Batch Forum
Topic: Need help with :echo function
Replies: 9
Views: 7121

Need help with :echo function

First I just want to say that I LOVE this site. It has helped me become 10 times better (maybe 100) with batch scripting which has saved me many hundreds of hours of manual effort for sure. Thank you to everyone who has contributed to what is available here. Secondly, I have some questions about the...