Skip to content

Issue: SunshineIntegration.bat ~ not determining the Wizard's directory reliably #4

@Write

Description

@Write

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 :

::@echo off
setlocal

:: Check if the correct number of arguments are provided
if "%~3"=="" (
    echo Usage: %0 [width] [height] [fps]
    exit /b 1
)

:: Assign arguments to variables
set WIDTH=%1
set HEIGHT=%2
set FPS=%3

:: Run the command from the current batch script directory
start "" /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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions