Computing.Net > Forums > Windows XP > Advanced Batch Programming

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Advanced Batch Programming

Reply to Message Icon

Name: Algeek
Date: December 25, 2008 at 04:58:48 Pacific
OS: Windows XP
CPU/Ram: 1G
Product: Hewlett-packard / PAVILION
Comment:

Hello,
I have recently come to a point where I need a batch file to use as logon script to complete a certain task for me.
As I am not fluent in batch programming I am explaining the problem and asking if someone could help.
I need a batch script that pings a certain host after user logs on on windows. If after the ping there are more timeouts than successful replies the script logs the user off again or executes some other kind of restriction.
Until Now i have come to the point where i ping the host and save the result in a txt file. If u could help me I would be grateful.

Thank you in advance



Sponsored Link
Ads by Google

Response Number 1
Name: tvc
Date: December 26, 2008 at 10:26:27 Pacific
Reply:

Counting lines from "net ping" is not that easy, but this is:

net ping SERVERNAME | findstr "Reply from"
if errorlevel 1 echo fail


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Advanced Batch Programming

need advanced batch references www.computing.net/answers/windows-xp/need-advanced-batch-references/151215.html

NT Batch Programming www.computing.net/answers/windows-xp/nt-batch-programming/152367.html

Need with batch program www.computing.net/answers/windows-xp/need-with-batch-program/158516.html