2mbodicker
I don't know what to say. As for me, everything does work as intended.
I have tested it in those ways:
tc.ps1 (PowerShell)tc.cmd (CMD)In each case, upon launching the script/batch I can see TotalCommander being opened with:
a. the cursor set on the "c:\Windows\explorer.exe", and "c:\Windows\regedit.exe" files in the left and right panes respectively.
b. "c:\Program Files" and "c:\ProgramData" folders opened in the left and right panes respectively.
Note: $env:commander_path/%commander_path% variables would work if a copy of TotalCommander has been already running, otherwise a literal path should be put there.
I don't know what to say. As for me, everything does work as intended.
I have tested it in those ways:
tc.ps1 (PowerShell)
Code:
$env:Path+=";$env:commander_path"$l = "c:\Windows\explorer.exe"$r = "c:\Windows\regedit.exe"totalcmd.exe /n /A /l=$l /r=$r$l = "c:\Program Files"$r = "c:\ProgramData"totalcmd.exe /n /l=$l /r=$rpause
Code:
path=%path%;%commander_path%set "l=c:\Windows\explorer.exe"set "r=c:\Windows\regedit.exe"start TOTALCMD64.EXE /n /A /l="%l%" /r="%r%"set "l=c:\Program Files"set "r=c:\ProgramData"start TOTALCMD64.EXE /n /l="%l%" /r="%r%"pause
a. the cursor set on the "c:\Windows\explorer.exe", and "c:\Windows\regedit.exe" files in the left and right panes respectively.
b. "c:\Program Files" and "c:\ProgramData" folders opened in the left and right panes respectively.
Note: $env:commander_path/%commander_path% variables would work if a copy of TotalCommander has been already running, otherwise a literal path should be put there.
Statistics: Posted by beb — 2024-09-12, 19:17 UTC