Forum Home
Press F1
 
Thread ID: 14567 2002-01-12 07:04:00 Batch Files Again ;) Guest (0) Press F1
Post ID Timestamp Content User
30949 2002-01-12 07:04:00 Hi,
i'm wanting to fire up my Dialup Conector within a Batch file with a # of other apps.

So could someone give me an idea of the comand line to use which will do this plz?

Here's what i have so far.


start /D 'E:\Program Files\Agnitum\Outpost Firewall 1.0' outpost.exe
start /D 'E:\Program Files\Proxomitron' Proxomitron.exe
start /D 'E:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus' avpm.exe
exit


Thnxs

.::Hip To Be Square::. [o_o]
Guest (0)
30950 2002-01-13 06:30:00 First open up My Computer, then open Dial-up Networking.
Goto the connections menu and select settings, the dial-up networking settings dialogue box should appear. Have a look at the 'When establishing a Dial-up connection' section and ensure that the 'Prompt for information before dialing' check box is NOT selected. Click OK.

Now in the dial-up networking window note the name of your connection, if it's something like 'My Connection' you should rename it to something simple like 'xtra' or 'zfree' or whatever the name of ISP is.

Next, insert that name into this batchfile where indicated. Then enter the pathnames to the programs you want to run, make sure to read the instructions in the batchfile otherwise it may not work.

@echo off
START RUNDLL32 RNAUI.DLL,RnaDial [NAME OF CONNECTION]
::
:: For instance, if your connection was named 'xtra'
:: The line would read as follows:
::
:: START RUNDLL32 RNAUI.DLL,RnaDial xtra
::
:: Make sure to substitute '[NAME OF CONNECTION]'
:: with the name of your connection.
::
TRACERT -h 1 -w 1
cls
echo Waiting for connection ....
choice /C:Y /N /T:Y,35
if errorlevel 1 goto start
:start
cls
echo Connection established.
[FULL PATH OF PROGRAM(S) TO RUN]
::
:: You do not need to use the 'start' command here,
:: that just complicates things.
::
:: You should also only use Dos pathnames.
:: For instance to run the programs you specified
:: you would use:
::
:: E:\progra~1\agnitu~1\outpos~1\outpos~1.exe
:: E:\progra~1\proxom~1\proxom~1.exe
:: E:\progra~1\kasper~1\kasper~1\avpm.exe
::
:: When done make sure to delete
:: the line '[FULL PATH OF PROGRAM(S) TO RUN]'
::
goto exit
:exit

If the lines are all %#@%$ up in this post you can view it here:

computec-nz.tripod.com

I have tested it and it does work.If you have any problems, let me know.
Guest (0)
30951 2002-01-14 03:33:00 hey thnxs for your help...

- I forgot to mention i'm running Win2000(if this makes any diff?).

- There is no RNAUI.DLL in E:\WinNT folder(maybe because it's win200?). if so then which file would i use?

Thnxs for any further info :)


.::Hip To Be Square::. [o_o]
Guest (0)
1