Cotal TypeScript packages
    Preparing search index...

    Function buildCmdCommandLine

    • The cmd.exe argument string that launches scriptPath (a .cmd/.bat) with args. Shape: /e:ON /v:OFF /d /s /c "<invocation>" where <invocation> is "<script>" <arg>…. /v:OFF makes !x! LITERAL; /e:ON keeps command extensions on so a shim's %~dp0 resolves; /d skips AutoRun. The script path is fail-closed against cmd %VAR% expansion too.

      Parameters

      • scriptPath: string
      • args: readonly string[]
      • env: ProcessEnv

      Returns string