Batch File for Auto-Reconnect of Aircard

February 23, 2011 at 08:18:52
Specs: Windows 7
Hello all. I'm EXTREMELY new to the programming world and I'm trying to learn how to create batch files, so bear with me if I don't know all the correct terms yet. I'm trying to create a bat file which will:

1. Start up the Wataniya (Kuwait Cell Phone Company) service
2. Auto-Connect to the internet via the Wataniya program
3. Ping Google every so often to determine if the connection needs to be restarted (the network out here stalls and needs to be restarted all the time)
4. Restart the Wataniya connection if the ping times out

This is complicated to me, but I know this might be cake for a lot of you. I'm in the military and on deployment; and I'm trying to create this bat file for the junior guys in my barracks for their morale. Any information that you guys could provide would be helpful.


See More: Batch File for Auto-Reconnect of Aircard

Report •

#1
February 23, 2011 at 17:48:46
is Wataniya is dial up connection ??

Subhash Chandra.


Report •

#2
February 23, 2011 at 21:18:03
It's a high-speed USB Air Card.

Report •

#3
February 24, 2011 at 05:42:37
yes..But does it work on Dial up ? Before i can think up for the script i need to know how does that internet card functions...Do you know how ?

Subhash Chandra.


Report •

Related Solutions

#4
February 24, 2011 at 08:53:23
Can you see the air card name (when plugged in) if you issue this command in command prompt?

WMIC PATH Win32_NetworkAdapter GET ProductName /FORMAT:LIST

If so, WMIC may be able to be used.

When your only tool is a hammer, every problem looks like a nail.


Report •

#5
February 24, 2011 at 09:18:28
No, it's not listed under the WMIC command

Report •

#6
February 24, 2011 at 09:40:48
Subhash Chandra,

The connection is started after opening up the Wataniya U/I and pressing the connect button. The modem is shaped like an oversized thumbdrive and runs off of the 3G wireless network here. Thanks again for helping me out.


Report •

#7
February 24, 2011 at 10:05:05
Ok. I use WMIC to set network settings on my laptop, based on the SSID found. If I'm home, I use a static IP address, and when remote, I use DHCP. If the air card was found, I thought maybe my script could have been modified a bit to reach the goal you're trying to achieve. Thanks for trying the command though!

When your only tool is a hammer, every problem looks like a nail.


Report •

#8
February 24, 2011 at 20:20:00
Connect the card and open network connections.. (start =>run => NCPA.CPL and write all the adaperts name here..

Subhash Chandra.


Report •

#9
February 25, 2011 at 06:50:49
Bluetooth Network Connection
Local Area Connection - Broadcom NetLink
Wireless Network Connection - Intel WiFi Link
Wnet -ZTE Proprietary USB Modem

Report •

#10
February 25, 2011 at 11:16:34
rasphone wnet

Connect the USB device, do not use your program to connect to internet , instead use above command from command prompt and see if the connection gets connected.you can verify so by pinging google or any other website.

if it works then we can create our script.

Before that open network properties,right click on Wnet connetion and hit properties.
Go to options tab and thn remove all check boxes.

Let me know if it works..

Subhash Chandra.


Report •

#11
February 25, 2011 at 11:34:23
No, it didn't work. It would try to connect and then, it would disconnect and a pop-up box showed up with a redial countdown button.

Report •

#12
February 25, 2011 at 11:37:11
what is the error messege in pop up box

Subhash Chandra.


Report •

#13
April 14, 2011 at 09:06:14
w-net cant connect to EA games !!!!!! :((((((((((((((((((( & viva cant conect only zain with laggg l0o0ool

Report •

Ask Question