Skip to content

Commit

Permalink
style: use a loop for style
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyueta committed Aug 7, 2023
1 parent 166f2f9 commit fde1af3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,26 @@ whoami /user | find /i "S-1-5-18" > nul 2>&1 || (

:main
:: Disable Bluetooth drivers and services
call setSvc.cmd BluetoothUserService 4
call setSvc.cmd BTAGService 4
call setSvc.cmd BthA2dp 4
call setSvc.cmd BthAvctpSvc 4
call setSvc.cmd BthEnum 4
call setSvc.cmd BthHFEnum 4
call setSvc.cmd BthLEEnum 4
call setSvc.cmd BthMini 4
call setSvc.cmd BTHMODEM 4
call setSvc.cmd BthPan 4
call setSvc.cmd BTHPORT 4
call setSvc.cmd bthserv 4
call setSvc.cmd BTHUSB 4
call setSvc.cmd HidBth 4
call setSvc.cmd Microsoft_Bluetooth_AvrcpTransport 4
call setSvc.cmd RFCOMM 4
for %%a in (
"BluetoothUserService"
"BTAGService"
"BthA2dp"
"BthAvctpSvc"
"BthEnum"
"BthHFEnum"
"BthLEEnum"
"BthMini"
"BTHMODEM"
"BthPan"
"BTHPORT"
"bthserv"
"BTHUSB"
"HidBth"
"Microsoft_Bluetooth_AvrcpTransport"
"RFCOMM"
) do (
call setSvc.cmd %%~a 4
)

:: Disable Bluetooth devices
call toggleDev.cmd "*Bluetooth*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,26 @@ whoami /user | find /i "S-1-5-18" > nul 2>&1 || (
)

:: Enable Bluetooth drivers and services
call setSvc.cmd BluetoothUserService 3
call setSvc.cmd BTAGService 3
call setSvc.cmd BthA2dp 3
call setSvc.cmd BthAvctpSvc 3
call setSvc.cmd BthEnum 3
call setSvc.cmd BthHFEnum 3
call setSvc.cmd BthLEEnum 3
call setSvc.cmd BthMini 3
call setSvc.cmd BTHMODEM 3
call setSvc.cmd BthPan 3
call setSvc.cmd BTHPORT 3
call setSvc.cmd bthserv 3
call setSvc.cmd BTHUSB 3
call setSvc.cmd HidBth 3
call setSvc.cmd Microsoft_Bluetooth_AvrcpTransport 3
call setSvc.cmd RFCOMM 3
for %%a in (
"BluetoothUserService"
"BTAGService"
"BthA2dp"
"BthAvctpSvc"
"BthEnum"
"BthHFEnum"
"BthLEEnum"
"BthMini"
"BTHMODEM"
"BthPan"
"BTHPORT"
"bthserv"
"BTHUSB"
"HidBth"
"Microsoft_Bluetooth_AvrcpTransport"
"RFCOMM"
) do (
call setSvc.cmd %%~a 3
)

:: Enable Bluetooth devices
call toggleDev.cmd /e "*Bluetooth*"
Expand Down

0 comments on commit fde1af3

Please sign in to comment.