27-11-2005, 04:53 PM
|
#1 (permalink)
|
|
In The Zone
Join Date: Sep 2004
Location: Pune
Posts: 436
|
batch file problem.....
geeks u gonna help me out again plz..... i did made the batch file to run 2 programmes run simultaneously which are the "bandwidth meter" and my "tata indicom dial up" together. but the prob is that by giving the path
"C:\Documents and Settings\All Users\Start Menu\Programs\Accessories\Communications\Network Connections.lnk"
iam able to open the window for my network connections and then again i have to click the dial up for indicom and then "dial" to get connected.
i want even a quicker method by which either the batch file operation results in dialing my indicom connection automatically or at least the tata indicom dial up comes up on screen rather than the present situation.
had there been a *.exe for my indicom connection my prob would have got sorted out but for this particular model of phone i have to get connected thru network connections only....
can anyone suggest a way out.......
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
28-11-2005, 02:53 PM
|
#2 (permalink)
|
|
In The Zone
Join Date: Sep 2004
Location: Pune
Posts: 436
|
hey geeks i dont think this is an impossible thing .... i hope there lies solution definitely...
__________________
"An eye for an eye leaves the world blind." - Gandhi
Athlon II X 4 620 Quad Core, Gigabyte GA-MA 785 GPMT, G-Skill DDR3 1333 Mhz 2GB X 2, Seagate 1 TB + Seagate 80 GB, Win 7 Ultimate 64 Bit
|
|
|
28-11-2005, 03:10 PM
|
#3 (permalink)
|
|
Alpha Geek
Join Date: Sep 2005
Location: The Black Pearl
Posts: 507
|
fire up notepad, paste "rasdial <connection name> <Username> <password>"
eg. rasdial tata indicom hansraj hansraj
this is the format... i mean without "" and <>
connection name is the name u see on the dialer...
now, save the file as "dialup.bat" in a new folder (eg. c:/dataone_sched)
just to make sure u dont overwrite something
Goto Start>All Programs>Accesories>System Tool>Scheduled Tasks
when opened click on "Add scheduled task" click next (it will hang for a moment or two) then a list of progs will be displayed.. don't panic that ur files arn't listed.... click on browse and point to the dialup.bat file..... then set the schedule by following the instructions.... do the same for disconnect... give the time values correctly (ie. in my case 2:10AM to 7:50AM....the BSNL clock is 2 mins behind)......
STEP 4:"add scheduled task"> then chose the prog u wish to run from the list and follow the instructions....
__________________
Dont ever involve in a dispute with a fool. The viewers might not be able to distinguish between the two :rolleyes:
|
|
|
28-11-2005, 03:38 PM
|
#4 (permalink)
|
|
In The Zone
Join Date: Sep 2004
Location: Pune
Posts: 436
|
dear yrana thax for u r help but still its not working ... i dont want it in my sheduled jobs but want to make a batch file so as to makemore than one program run simultaneously. my batch file looks like somewhat.....
@echo off
start "" "E:\Program Files\BWMeter\BWMeter.exe"
start "" "C:\Documents and Settings\All Users\Start Menu\Programs\Accessories\Communications\Network Connections.lnk"
and after u r suggestion i have made it
@echo off
rasdial Tata Indicom internet internet
start "" "C:\Program Files\DVD Shrink\DVD Shrink 3.2.exe"
but its running only dvd shrink and no dialer :roll:
|
|
|
28-11-2005, 03:41 PM
|
#5 (permalink)
|
|
Human Spambot
Join Date: Nov 2004
Location: Madurai
Posts: 2,349
|
If your connection name is Tata Indicom, I think it will have to be within quotes
rasdial "Tata Indicom" internet internet
Arun
|
|
|
28-11-2005, 03:46 PM
|
#6 (permalink)
|
|
In The Zone
Join Date: Sep 2004
Location: Pune
Posts: 436
|
thanks a ton arun ......... u r help has solved my prob..........
bye buddy
|
|
|
28-11-2005, 05:25 PM
|
#7 (permalink)
|
|
Human Spambot
Join Date: Nov 2004
Location: Madurai
Posts: 2,349
|
Well actually, i did not know the main part... Only noticed that in your last post you had missed the quotes - common problem when using dos commands... So, actually the credit should go to yrana2002 more than me for getting things in the right track...
Arun
|
|
|
28-11-2005, 05:40 PM
|
#8 (permalink)
|
|
Alpha Geek
Join Date: Sep 2005
Location: The Black Pearl
Posts: 507
|
Quote:
|
Originally Posted by sakumar79
Well actually, i did not know the main part... Only noticed that in your last post you had missed the quotes - common problem when using dos commands... So, actually the credit should go to yrana2002 more than me for getting things in the right track...
Arun
|
Thanks buddy, but the actual credit goes to somebody else, in this forum itself, if hansraj had searched before, he would've got the post i wrote from
__________________
Dont ever involve in a dispute with a fool. The viewers might not be able to distinguish between the two :rolleyes:
|
|
|
28-11-2005, 07:51 PM
|
#9 (permalink)
|
|
In The Zone
Join Date: Sep 2004
Location: Pune
Posts: 436
|
well thats nice as iam working less to get connected coz of u guys now but can u suggest me the list of commands for various other actions....
__________________
"An eye for an eye leaves the world blind." - Gandhi
Athlon II X 4 620 Quad Core, Gigabyte GA-MA 785 GPMT, G-Skill DDR3 1333 Mhz 2GB X 2, Seagate 1 TB + Seagate 80 GB, Win 7 Ultimate 64 Bit
|
|
|
28-11-2005, 10:51 PM
|
#10 (permalink)
|
|
Human Spambot
Join Date: Nov 2004
Location: Madurai
Posts: 2,349
|
Quote:
|
Originally Posted by hansraj
well thats nice as iam working less to get connected coz of u guys now but can u suggest me the list of commands for various other actions....
|
what other actions? I thought you got both dialup and your program to run...
Arun
|
|
|
29-11-2005, 02:18 AM
|
#11 (permalink)
|
|
Alpha Geek
Join Date: Sep 2005
Location: The Black Pearl
Posts: 507
|
@sakumar
will this rasdial feature work for dsl connections, eg: Bsnl dataone? How?
__________________
Dont ever involve in a dispute with a fool. The viewers might not be able to distinguish between the two :rolleyes:
|
|
|
29-11-2005, 06:57 AM
|
#12 (permalink)
|
|
Human Spambot
Join Date: Nov 2004
Location: Madurai
Posts: 2,349
|
Rasdial should work for dsl connections also. Use with same command line as dialup.
Arun
|
|
|
29-11-2005, 09:22 AM
|
#13 (permalink)
|
|
Alpha Geek
Join Date: Sep 2005
Location: The Black Pearl
Posts: 507
|
Here's my batchfile:
rasdial "Local Area Connection" xxx xxx
When i run this, it displays
Error 623: System could not find phone book entry for this connection
What do i do now?
__________________
Dont ever involve in a dispute with a fool. The viewers might not be able to distinguish between the two :rolleyes:
|
|
|
29-11-2005, 09:40 AM
|
#14 (permalink)
|
|
Human Spambot
Join Date: Nov 2004
Location: Madurai
Posts: 2,349
|
In Windows, go to Help and search for rasdial... Details of the command are there... You probably also want to look at details of Rasphone - try "rasphone -d <entry>" assuming you have saved username and password.
For the above error, you should check if you have a connection in Control Panel->Network Connections that has the name "Local Area Connection". If you do, try to remove and recreate the connection...
Arun
|
|
|
29-11-2005, 10:02 AM
|
#15 (permalink)
|
|
Alpha Geek
Join Date: Sep 2005
Location: The Black Pearl
Posts: 507
|
Well, i found out, though not really sure, that rasdial command is onyl for PPPoE & dial-up connections, not for lan
Quote:
|
For the above error, you should check if you have a connection in Control Panel->Network Connections that has the name "Local Area Connection". If you do, try to remove and recreate the connection...
|
Well, you cannot delete this connection, as it relates to the ethenet card that i have as installed!
__________________
Dont ever involve in a dispute with a fool. The viewers might not be able to distinguish between the two :rolleyes:
|
|
|
29-11-2005, 10:28 AM
|
#16 (permalink)
|
|
Human Spambot
Join Date: Nov 2004
Location: Madurai
Posts: 2,349
|
I thought you said it was for BSNL DataOne Connection... Why do you want to automate connecting to the LAN? Does it not get connected automatically?
Arun
|
|
|
30-11-2005, 02:18 AM
|
#17 (permalink)
|
|
Alpha Geek
Join Date: Sep 2005
Location: The Black Pearl
Posts: 507
|
Quote:
|
Originally Posted by sakumar79
I thought you said it was for BSNL DataOne Connection... Why do you want to automate connecting to the LAN? Does it not get connected automatically?
Arun
|
Well, due to the usage limitations, i frequently enable /disable it so that no third party software may download from background. I need to automate this process so that i may sleep well without getting up at 2 for d/l
__________________
Dont ever involve in a dispute with a fool. The viewers might not be able to distinguish between the two :rolleyes:
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|