Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Need help to create a dos batsh testing script

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,54725
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Need help to create a dos batsh testing script
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Need help to create a dos batsh testing script - 12/27/2007 1:53:15 AM   
  freestream

 

Posts: 1
Score: 0
Joined: 12/27/2007
Status: offline
Original message moved by ebgreen
Reason : Moved to proper forum
Iam trying to create a dos batsh testing script. I want to test the connection to a url via telnet. The result should be depending of the output for each command.


      

@ECHO OFF
IF NOT ERRORLEVEL 1 GOTO connect
echo An error
:connect
IF telnet scs00.rackel.com 10000 | find "failed" goto failed
(if the result output of  telnet scs00.rackel.com 10000 contains "failed" then goto failed)
echo Success
(else print "Success")
pause
:failed
echo Failed
(if error with telnet scs00.rackel.com 10000 then print "Failed")
pause

Can someone help me with this?

< Message edited by freestream -- 12/27/2007 4:44:23 PM >
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Need help to create a dos batsh testing script Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts