(OT) - Script to automate internet connection ?

  • Thread starter Thread starter antoine
  • Start date Start date
A

antoine

Hello all,

I have a little .bat file which uploads a given file through ftp but i
still need to be connected before launching it. Could there be a way to
integrate the internet connection to the script so that the script would
connect to the net automagically ?

Thanks in advance,
Antoine
 
Hello all,

I have a little .bat file which uploads a given file through ftp but i
still need to be connected before launching it. Could there be a way to
integrate the internet connection to the script so that the script would
connect to the net automagically ?

Seems to me I used to use Ping to "wake up" my old dialup service
within a batch file. Enable "dial on demand". Then manually do a Ping
to any valid IP address to see if it is likely to work for you.

Art

http://home.epix.net/~artnpeg
Free antivirus:
http://www.ik-cs.com/programs/virtools/KASFX.EXE
http://www.claymania.com/KASFX.EXE
http://tinyurl.com/azzkc
 
domenica 2 ottobre 2005 antoine ha scritto:
Hello all,
I have a little .bat file which uploads a given file through ftp but i
still need to be connected before launching it. Could there be a way to
integrate the internet connection to the script so that the script would
connect to the net automagically ?
Thanks in advance,
Antoine

Is it dial-up? Add this line on top of it:

rasdial name_of_your_connection your_username your_password

Maybe you need also to wait a bit before the ftp commands, to give time for
connecting. So you might add also this:

sleep 30
(to wait 30 seconds)

Ciao,
 
rasdial name_of_your_connection your_username your_password

Maybe you need also to wait a bit before the ftp commands, to give time for
connecting. So you might add also this:

sleep 30
(to wait 30 seconds)

That should be possible to do with && too, I think - so that ftp only
gets executed if rasdial is successful..

Like
rasdial name_of_your_connection your_username your_password && ftp ...
 
Thank you Maria, Art and Urban.

I made a reply post sent via my isp nntp server but the latter looks slow so I post again through
another nntp server.

Maria wrote :
Is it dial-up? Add this line on top of it:

It is a dsl connection (with wanadoo).
rasdial name_of_your_connection your_username your_password

Thank you. The script works indeed but only once (?!).
Then I get 623 error (directory not found).

Actually, I don't understand why there are apparently 2 ways to edit the connection's properties :

- either through Start > Parameters > Network connections > [my isp dsl connection]

- or through IE or CrazyBrowser > Options > Internet options > Connection tab

I made some screenshots of my configuration :
http://freewarefrance.com/temp/example.html

Thanks in advance.
 
domenica 2 ottobre 2005 Antoine ha scritto:
Maria wrote :
It is a dsl connection (with wanadoo).
Thank you. The script works indeed but only once (?!).
Then I get 623 error (directory not found).

Strange. I'm not expert, have a look at:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/rasdial.mspx
Actually, I don't understand why there are apparently 2 ways to edit the connection's properties :
- either through Start > Parameters > Network connections > [my isp dsl connection]
- or through IE or CrazyBrowser > Options > Internet options > Connection tab
I made some screenshots of my configuration :
http://freewarefrance.com/temp/example.html

Don't worry for that: Windows has quite infinite ways to bring you to the
same result :-)
 
Back
Top