RETROBAT Official Board
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Games that don't start with too many USBs on

2 posters

Go down

Games that don't start with too many USBs on Empty Games that don't start with too many USBs on

Post by sio03 22/11/21, 07:18 am

I created a batch file, thanks to Bilu's help, to disable some usb ports when starting a game.

Under windows it works perfectly but under retrobat it gives me this error:
"pnputil is not recognized as an internal or external program, executable program or batch file"

The syntax I used is this:
------------------------------------------------------------------------------------------------------
echo off pause

C:\Windows\System32\pnputil.exe /disable-device "USB\VID_D209&PID_1601\9"
C:\Windows\System32\pnputil.exe /disable-device "USB\VID_D209&PID_1602\7"
C:\Windows\System32\pnputil.exe /disable-device "USB\VID_0079&PID_0006\7&2047a5ce&0&1"
C:\Windows\System32\pnputil.exe /disable-device "USB\VID_0079&PID_0006\7&2047a5ce&0&3"
C:\Windows\System32\pnputil.exe /disable-device "USB\VID_0079&PID_0006\8&25af2192&0&1"
C:\Windows\System32\pnputil.exe /disable-device "USB\VID_0079&PID_0006\7&3573533e&0&4"

start "" /WAIT "C:\Giochi del momento\Rocksmith\Rocksmith.exe"

C:\Windows\System32\pnputil.exe /enable-device "USB\VID_D209&PID_1601\9"
C:\Windows\System32\pnputil.exe /enable-device "USB\VID_D209&PID_1602\7"
C:\Windows\System32\pnputil.exe /enable-device "USB\VID_0079&PID_0006\7&2047a5ce&0&1"
C:\Windows\System32\pnputil.exe /enable-device "USB\VID_0079&PID_0006\7&2047a5ce&0&3"
C:\Windows\System32\pnputil.exe /enable-device "USB\VID_0079&PID_0006\8&25af2192&0&1"
C:\Windows\System32\pnputil.exe /enable-device "USB\VID_0079&PID_0006\7&3573533e&0&4"
-------------------------------------------------------------------------------------------------------------
Any suggestions?

if not I disable the usb the game does not start or creates conflicts with the controllers

sio03
sio03

Messages : 38
Date d'inscription : 2021-09-15

Back to top Go down

Games that don't start with too many USBs on Empty Re: Games that don't start with too many USBs on

Post by Kayl 22/11/21, 08:19 pm

Hello,

I guess that your retrobat installation is on another storage than the C:, so in your script you forgot to go in the C: before launching pnputil.

You should try by adding CD c: on a new line just after echo off.


Games that don't start with too many USBs on Admin4
Kayl
Kayl
Admin

Messages : 301
Date d'inscription : 2019-06-03
Localisation : Galaxie de l'Ouest

https://www.retrobat.ovh

Back to top Go down

Games that don't start with too many USBs on Empty Re: Games that don't start with too many USBs on

Post by sio03 22/11/21, 10:42 pm

Nothing to do, it does not work even adding cd c:, the strange thing is that if you langio the link out of retrobat works perfectly ... Any other advice? Thank you
sio03
sio03

Messages : 38
Date d'inscription : 2021-09-15

Back to top Go down

Games that don't start with too many USBs on Empty Re: Games that don't start with too many USBs on

Post by Kayl 23/11/21, 08:56 pm

I obviously told you the bad command, you only need to type "c:" to go to C drive, not "CD c:"

I was tired, lol


Games that don't start with too many USBs on Admin4
Kayl
Kayl
Admin

Messages : 301
Date d'inscription : 2019-06-03
Localisation : Galaxie de l'Ouest

https://www.retrobat.ovh

Back to top Go down

Games that don't start with too many USBs on Empty Re: Games that don't start with too many USBs on

Post by sio03 23/11/21, 11:02 pm

i tried but it doesn't work, (c: \ windows \ system \ pnputil.exe is not recognized as an internal or external command, an executable or a batch file) it's like retrobat is preventing the use of pnputil ...
If I quit retrobat the same link works perfectly
sio03
sio03

Messages : 38
Date d'inscription : 2021-09-15

Back to top Go down

Games that don't start with too many USBs on Empty Re: Games that don't start with too many USBs on

Post by sio03 26/11/21, 07:09 am

No idea why?
sio03
sio03

Messages : 38
Date d'inscription : 2021-09-15

Back to top Go down

Games that don't start with too many USBs on Empty Re: Games that don't start with too many USBs on

Post by sio03 27/12/21, 10:35 pm

help...
sio03
sio03

Messages : 38
Date d'inscription : 2021-09-15

Back to top Go down

Games that don't start with too many USBs on Empty Re: Games that don't start with too many USBs on

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum