Skip to content

Debug Statements

Atiq Rahman edited this page Apr 17, 2020 · 1 revision

StartX

# 'Init for app: ' + $AppName

# Use parent dir from Registry instead
# $BinaryDir = (Get-Item $BinaryPath).Directory.FullName

Write-Host `
"Start-Process -FilePath $BinaryPath -WorkingDirectory $BinaryDir -RedirectStandardOutput `
  $RedirectStandardOutVal -ArgumentList $argList"

Write-Host `
"Start-Process -FilePath `"$BinaryPath`" -WorkingDirectory `"$BinaryDir`" -RedirectStandardOutput `
    $RedirectStandardOutVal"


# Write-Host "bin path " $BinaryPath " dir " $BinaryDir " err file " $RedirectStandardErrVal " out file " $RedirectStandardOutVal
Write-Host "path before" $EnvPath
Write-Host "path after" $Env:Path

Powershell function calls gotta be in space. This does not work,

if (RunHotCmd($AppName) -Eq $False) {
  .... }

debugging regarding that,

  $val = RunHotCmd($AppName)
  Write-Host "val:" $val
Clone this wiki locally