From: "Hakan" Received: from [192.168.100.201] (HELO mail.2rosenthals.com) by 2rosenthals.com (CommuniGate Pro SMTP 5.1.16) with ESMTP id 1891009 for os2-wireless_users@2rosenthals.com; Sat, 07 Nov 2009 16:31:54 -0500 Received: from secmgr-va.2rosenthals.com ([162.83.95.194] helo=mail2.2rosenthals.com) by secmgr-ny.randr with esmtps (TLSv1:AES256-SHA:256) (Exim 4.43) id 1N6ssw-0003xo-M2 for os2-wireless_users@2rosenthals.com; Sat, 07 Nov 2009 16:31:54 -0500 Received: from mout.perfora.net ([74.208.4.194]:62409) by mail2.2rosenthals.com with esmtp (Exim 4.69) (envelope-from ) id 1N6ssr-0000Tg-1J for os2-wireless_users@2rosenthals.com; Sat, 07 Nov 2009 16:31:45 -0500 Received: from ThinkPad (pool-70-20-182-186.phil.east.verizon.net [70.20.182.186]) by mrelay.perfora.net (node=mrus1) with ESMTP (Nemesis) id 0M87fV-1MBDv521r7-00wFvW; Sat, 07 Nov 2009 16:31:43 -0500 X-CTCH-RefID: str=0001.0A020203.4AF5E741.011D,ss=1,fgs=0 To: "OS/2 Wireless Users Mailing List" Date: Sat, 07 Nov 2009 11:12:58 -0500 (EST) Reply-To: "Hakan" Priority: Normal X-Mailer: PMMail 2.20.2382 for OS/2 Warp 4.5 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: [OS2Wireless] Re: Command File to Enable/Disable WiFi Message-Id: <0M87fV-1MBDv521r7-00wFvW@mrelay.perfora.net> X-Provags-ID: V01U2FsdGVkX19qWtom8pUVUDXJSdDn332lVst1aV+y71Wg4yv PqTGtIYhCE+qoGqaJYXNMgg90/60kNQ6y6Y/nC1Zr0/3O7o2B0 Y9IW1UANDT8+1hljiQ+mQ== X-Spam-Score: 0.0 (/) X-Spam-Report: _SUMMARY_ Thank you, Neil. On Sat, 7 Nov 2009 08:09:12 -0800, Neil Waldhauer wrote: >On Fri, 06 Nov 2009 19:16:10 -0500 (EST), "Hakan" > wrote: > >> Does anyone have the commands that need to be used in a CMD file to >> enable/disable the built-in WiFi? I am currently doing it using the >> eCenter widget but would like to have a CMD-file for enabling WiFi >> while disabling the cabled connection, and vice versa. > >These are commands I used a long time ago. Modify them to suit yourself. > >Neil > > >/* turn on the radio > * This command activates the 802.11b interface > * > * The wireless NIC should be inserted in the PC Card slot > */ >wifiProg = "e:\programs\ambicom\wifistat.exe" >say "Activating the wireless network card" >'@ net stop messenger /y' >'@ net stop req /y' >'@ dhcpmon -t' >'@ ifconfig lan0 down' >'@ ifconfig lan0 delete' >'@ route -fh' >'@ arp -f' >'@ dhcpstrt -i lan1 -d 0' >'@ start' wifiProg >'@ start dhcpmon' >say "Wireless networking enabled" >return > > >/* turn off the radio >* This command deactivates the 802.11b interface >*/ >say "Deactivating the wireless network card" >'@ go -k wifistat.exe' >'@ go -k dhcpmon.exe' >'@ dhcpmon -t' >'@ ifconfig lan1 down' >'@ ifconfig lan1 delete' >'@ route -fh' >'@ arp -f' >'@ dhcpstrt -i lan0 -d 10' >say "Cable networking enabled" >-- >Neil Waldhauer, neil@blondeguy.com > >I found God; now it's my turn to hide. > >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >To switch to the INDEX mode, E-mail to >Send administrative queries to >To subscribe (new addresses), E-mail to: and reply to the confirmation email. >Web archives are publicly available at: http://lists.2rosenthals.com > >This list is hosted by Rosenthal & Rosenthal, LLC >P.O. Box 281, Deer Park, NY 11729-0281. Non- >electronic communications related to content >contained in these messages should be directed >to the above address. (CAN-SPAM Act of 2003) > >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= >