Steps to reproduce:
- now let's say you have a button on the buttonbar like this:
Code: Select all
TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Essentials\ConEmu\ConEmu64.exe
-run PowerShell -NoExit -File test.ps1 %UL "%P\"
TOTALCMD64.EXE,37
test.ps1
%COMMANDER_PATH%\Test
Code: Select all
Write-Host "args[0]: $($args[0])"
Write-Host "args[1]: $($args[1])"
Write-Host "args[2]: $($args[2])"
foreach($i in Get-Content $($args[0])) {Write-Host "-> $($i)" -ForegroundColor Green;}
- Select any file(s) (dummy.txt) and press the button
Code: Select all
args[0]: %TEMP%\CMD92F3.tmp
args[1]: D:\Totalcmd\Test\
args[2]:
-> D:\Totalcmd\Test\dummy.txt
- CMD92F3.tmp is still in %TEMP%
- ConEmu stays open. 'PS D:\Totalcmd\Test>'
- No press the button again (conemu stikk open; doesn't matter if the same file is selected or others)
Code: Select all
args[0]: %TEMP%\CMD3A1C.tmp
args[1]: D:\Totalcmd\Test\
args[2]:
Get-Content : Der Pfad "%TEMP%\CMD3A1C.tmp" kann nicht gefunden werden, da er nicht vorhanden ist.
(Cannot find path %TEMP%CMD3A1C.tmp" because it does not exist.)
- conemu opens another tab.
- another list file is generated (at least the name, but it doesn't exist)
- CMD3A1C.tmp is not in %TEMP% (never was?)
- CMD92F3.tmp is still in %TEMP% (previous run)