Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Windows 98 / Networking / February 2006

Tip: Looking for answers? Try searching our database.

Detecting network start

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
abcd - 12 Feb 2006 04:25 GMT
Hello,

 I would like to run a batch, once, every time the network is
connected. But the task scheduler seems not to have this possibility
"network connected". It can at windows start. Not at network start.

 (it's a modem, not a LAN)

Any good idea is good to try. Thanks.
Franc Zabkar - 16 Feb 2006 02:58 GMT
>Hello,
>
[quoted text clipped - 5 lines]
>
>Any good idea is good to try. Thanks.

Dialup or DSL?

- Franc Zabkar
Signature

Please remove one 'i' from my address when replying by email.

abcd - 19 Feb 2006 03:04 GMT
> Dialup or DSL?

 Dialup
Franc Zabkar - 19 Feb 2006 20:35 GMT
>> Dialup or DSL?
>
>  Dialup

I used to launch my dialup sessions manually via a batch file. I had a
link on the desktop that pointed to a file named internet.bat which
contained a sequence of Start commands that would launch all my
Internet apps, eg firewall, email client, news client, browser, and of
course my dialup connectoid. The batch also checked whether my other
PC was currently on the LAN, in which case the dialup session did not
go ahead.

To set up something like the above, you need to first prevent your
apps from automatically connecting to the Net. To launch the dialup
session, you could use a batch command such as ...

start your_ISP.lnk

... where the .lnk file is a shortcut to your DUN connectoid.

To test whether a dialup session is in progress, you could test for
the presence of the rnaapp task. Microsoft's Win98 Resource Kit has a
tlist.exe command line utility that lists all the running tasks. You
could use the following commands to test for rnaapp:

tlist | find /i "rnaapp" > nul
if errorlevel 1 echo Dialup Networking is not running

Tlist.exe is available here:
ftp://ftp.microsoft.com/Services/TechNet/samples/ps/win98/reskit/DIAGNOSE/TLIST.EXE

FYI, you can also kill running tasks using the kill.exe utility:
ftp://ftp.microsoft.com/Services/TechNet/samples/ps/win98/reskit/DIAGNOSE/KILL.EXE

BTW, my internet.bat routine also displayed the more important entries
in the most recent firewall log, in particular any outgoing alerts.
The batch also analysed the modem's last call statistics which alerted
me to any problems with my phone line. The modemlogs and ppplogs were
searched for any errors, eg buffer overruns, CRC errors.

- Franc Zabkar
Signature

Please remove one 'i' from my address when replying by email.

abcd - 22 Feb 2006 06:37 GMT
 what a tip !

in fact, it could be better if app can have the auto-connection. But it
seems ok with scheduling a task and checking if connection alive. So
your idea will help me, but if anyone else know a better way to execute
a batch when the connection starts, I will appreciate it also..

 Thank you !
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.