Networking Forums

Networking Forums > Computer Networking > Windows Networking > Detecting network start

Reply
Thread Tools Display Modes

Detecting network start

 
 
abcd
Guest
Posts: n/a

 
      02-12-2006, 03:25 AM
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.
 
Reply With Quote
 
 
 
 
Franc Zabkar
Guest
Posts: n/a

 
      02-16-2006, 01:58 AM
On Sun, 12 Feb 2006 05:25:18 +0100, abcd <(E-Mail Removed)> put
finger to keyboard and composed:

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


Dialup or DSL?

- Franc Zabkar
--
Please remove one 'i' from my address when replying by email.
 
Reply With Quote
 
abcd
Guest
Posts: n/a

 
      02-19-2006, 02:04 AM
> Dialup or DSL?

Dialup
 
Reply With Quote
 
Franc Zabkar
Guest
Posts: n/a

 
      02-19-2006, 07:35 PM
On Sun, 19 Feb 2006 04:04:47 +0100, abcd <(E-Mail Removed)> put
finger to keyboard and composed:

>> 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/Tec...NOSE/TLIST.EXE

FYI, you can also kill running tasks using the kill.exe utility:
ftp://ftp.microsoft.com/Services/Tec...GNOSE/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
--
Please remove one 'i' from my address when replying by email.
 
Reply With Quote
 
abcd
Guest
Posts: n/a

 
      02-22-2006, 05:37 AM
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 !
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless Network not detecting justsmokey Wireless Networks 4 01-27-2008 05:24 PM
Trouble detecting network Mattiocwit Wireless Internet 1 10-12-2007 03:50 AM
Acer laptop not detecting Wireless network. Smita Wireless Internet 1 07-06-2007 08:43 AM
detecting between two network cards rob Windows Networking 3 12-16-2003 11:56 PM
network card is not detecting mohan Windows Networking 0 10-31-2003 06:10 AM



1 2 3 4 5 6 7 8 9 10 11