Skip to content

Instantly share code, notes, and snippets.

@42wim
Last active November 15, 2020 21:43
Show Gist options
  • Save 42wim/a620cc878890154ddedadfd0d2bab41d to your computer and use it in GitHub Desktop.
Save 42wim/a620cc878890154ddedadfd0d2bab41d to your computer and use it in GitHub Desktop.
scoop chrome portable widevine junction workaround
@echo off
cd C:\workdir\myapps\scoop\apps\googlechrome-portable
FOR /F "tokens=*" %%g IN ('dir /AD /B /O-d ^| find /V "current" ^|findstr/n . ^|findstr "^1:"') do (SET VAR=%%g)
set VAR=%VAR:1:=%
start %VAR%\chrome %*
@echo off
cd c:\Workdir\MyApps\scoop\apps\googlechrome-portable
FOR /F "tokens=*" %%g IN ('fsutil reparsepoint query current ^| find /v "??" ^| findstr "C:\work"') do (SET VAR=%%g)
set VAR=%VAR:Print Name: =%
start %VAR%\chrome %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment