You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had some trouble to use your tool as the SunshineIntegration.bat couldn't find the .exe that was in the same folder;
I solved it by using %~dp0
Example :
::@echo offsetlocal:: Check if the correct number of arguments are providedif"%~3"=="" (
echo Usage: %0 [width] [height] [fps]
exit /b 1
)
:: Assign arguments to variablessetWIDTH=%1setHEIGHT=%2setFPS=%3:: Run the command from the current batch script directorystart"" /w "%~dp0PRPlanIT.com-VirtualDisplayDrv_Wiz.exe" Reso_Adds %WIDTH%%HEIGHT%%FPS%:: Optionally pipe the output to a log file (if needed)::"%~dp0PRPlanIT.com-VirtualDisplayDrv_Wiz.exe" Reso_Adds %WIDTH% %HEIGHT% %FPS% > "%~dp0output.log" 2>&1
The text was updated successfully, but these errors were encountered:
…bat ~ not determining the Wizard's directory reliably.
modified: SunshineIntegration.bat
sofmeright
changed the title
FR : Update SunshineIntegration.bat to use exe / log in current directory
Issue: SunshineIntegration.bat ~ not determining the Wizard's directory reliably.
Sep 23, 2024
sofmeright
changed the title
Issue: SunshineIntegration.bat ~ not determining the Wizard's directory reliably.
Issue: SunshineIntegration.bat ~ not determining the Wizard's directory reliably
Sep 23, 2024
Thank you for this PR and helping prevent other users from having the same problem. Much appreciated! I went ahead and updated the release with your fix so no one else will run into the same issue. I can not reproduce on my system, kind of curious why it gave you this trouble. Yet, referencing the paths by the app's directory is honestly best practice. I kind of just threw the .bat together, definitely an oversight. Sorry that you ran into that and I hope you did not spend much time troubleshooting it!
hi,
I had some trouble to use your tool as the SunshineIntegration.bat couldn't find the .exe that was in the same folder;
I solved it by using %~dp0
Example :
The text was updated successfully, but these errors were encountered: