Code: Select all
@echo off
ping 127.0.0.1 -w 5000>nul
"%~dp0devcon.exe restart =display *ven_1002*"
Also tried devcon restart =display *ven_1002* instead of the above, or giving full path to devcon, but no change.
Moderator: DosItHelp
Code: Select all
@echo off
ping 127.0.0.1 -w 5000>nul
"%~dp0devcon.exe restart =display *ven_1002*"
Code: Select all
PCI\VEN_1002&DEV_.....: Restart failed
No matching devices found.
Press any key to continue . . .
Code: Select all
"%~dp0devcon.exe" restart =display *ven_1002*
Code: Select all
>> test.txt (
2>>&1 (
echo("%~dp0devcon.exe" restart =display *ven_1002*
"%~dp0devcon.exe" restart =display *ven_1002*
)
)
Code: Select all
echo("%~dp0devcon.exe" restart =display *ven_1002*
Code: Select all
"%~dp0devcon.exe" restart =display *ven_1002*
Code: Select all
"%~dp0devcon.exe" restart =display *ven_1002* >> test.txt (
2>>&1 (
echo("%~dp0devcon.exe" restart =display *ven_1002*
"%~dp0devcon.exe" restart =display *ven_1002*
)
)
Code: Select all
PCI\VEN_1002&DEV_....: Restarted
1 device(s) restarted.
Code: Select all
PCI\VEN_1002&DEV_....: Restart failed
No matching devices found.
You might have misunderstood my post, or done a copy-paste error.sambul35 wrote:Code: Select all
"%~dp0devcon.exe" restart =display *ven_1002* >> test.txt (
2>>&1 (
echo("%~dp0devcon.exe" restart =display *ven_1002*
"%~dp0devcon.exe" restart =display *ven_1002*
)
)