Batch Files

  • Thread starter Thread starter Davie Clark
  • Start date Start date
D

Davie Clark

Hi,

I hope I'm in the right forum here. I'd like to create a
batch file (I think!) but I'm not sure how to go about
it. What I'd like to do is log my IP address (which is
non-static) each time I connect using my dial-up.

I know that when I'm connected I can use the command
prompt to do the following...

ipconfig /all >> C:/iplog.txt

This outputs the info I require to a file. I don't want
to have to run a program manually once I connect as it
would be just as easy to open the command line and do
that. What i want is to create a log entry each time I
connect using the DUN program (I think I'm using the
correct term there.)

Does anyone know how I would go about this?
 
This should work although it's not as pretty as the usual connection dialog
box:

rasdial yourConnectionName yourUsername *
ipconfig /all >> C:/iplog.txt

you can put in your actual password, if you use * as above, you will be
prompted for it

microsoft.public.win2000.cmdprompt.admin
may be a better place to ask about batfiles, and you may get a better answer
there
 
Back
Top