ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

'Connect to Internet' shortcut needed.

<< < (3/4) > >>

pilgrim:
 netsh command not working on XP! :wallbash:

neither is devcon!

4wd:
And if you use the full instance ID?

eg. devcon disable "@PCI\VEN_8086&DEV_1503.................."

pilgrim:
And if you use the full instance ID?

eg. devcon disable "@PCI\VEN_8086&DEV_1503.................."
-4wd (March 28, 2013, 02:49 AM)
--- End quote ---

Same thing - nothing.

I found an old article somewhere saying that devcon would not work for this on XP and it suggested using a VB script.
In the first place that is beyond my understanding, in the second there was no indication as to whether the OP actually got it working?
Also, the script listed was to toggle the adapter, I need to keep enable and disable separate.

Not that I can see it should make a difference but the connection on both my XP computers is wireless, built in on my Netbook, a dongle on my old PC.
I have only tried it on the Netbook so far, the ID is:
PCI\VEN_168C&DEV_001C&SUBSYS_E00C105B&REV_01\4&192AC53F&0&00E0.

I tried all the variations listed above but none of them worked, I will try again because a number of times I got an error message but never copied it.

On Windows 7 the last batch files I posted are still working perfectly.

pilgrim:
Meanwhile, many hours later:

Internet_ON.bat

@echo off

start "" "C:\Program Files\D4\D4.exe"
C:\WINDOWS\system32\sleep.exe 1
start "" "C:\Program Files\Sandboxie\SbieCtrl.exe"
C:\WINDOWS\system32\sleep.exe 1
start "" "C:\Program Files\PeerBlock\peerblock.exe"
C:\WINDOWS\system32\sleep.exe 3

C:\WINDOWS\system32\devcon.exe enable *DEV_001C*

------------------------------------------------------

Internet_OFF.bat

@echo off

start /d "C:\WINDOWS\system32\taskkill.exe" taskkill /F /IM peerblock.exe
start /d "C:\WINDOWS\system32\taskkill.exe" taskkill /F /IM SbieCtrl.exe
start /d "C:\WINDOWS\system32\taskkill.exe" taskkill /F /IM D4.exe

C:\WINDOWS\system32\devcon.exe disable *DEV_001C*

------------------------------------------------------

NOTES:

devcon.exe will work in XP but only after I used the full path.

taskkill.exe is not in XP Home so I copied it from XP Mode and while it was recognised by the system, it too required the full path to work.
sleep.exe was the same.

The time delays in the 'ON' file were to get the icons in the order I wanted in the System Tray, not an issue in Windows 7.

While the batch files I now have all work, when the 'OFF' files are run the program icons remain in the System Tray in both OS' until I run the cursor over them.
The network icon on 7 goes grey (disabled), on XP it disappears, both normal actions.


Two down, one to go.

4wd:
devcon.exe will work in XP but only after I used the full path.-pilgrim-online (March 28, 2013, 11:55 AM)
--- End quote ---

Sounds like you don't have System32 in the PATH environment, ie.

C:\>path
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32
\WindowsPowerShell\v1.0\

C:\>
--- End quote ---

As for SysTray leftover icons, attached is a small program that will remove them, (works on XP, Vista & 7 - not tested on 8 ).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version