[TC9.51] File list not generated (ConEmu)

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Stiltzkin
Member
Member
Posts: 179
Joined: 2004-09-10, 17:15 UTC

[TC9.51] File list not generated (ConEmu)

Post by *Stiltzkin »

I'm using conemu (conemu.github.io) because of the tab feature.

Steps to reproduce:
  1. 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
test.ps1 (in %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
Output

Code: Select all

args[0]: %TEMP%\CMD92F3.tmp
args[1]: D:\Totalcmd\Test\
args[2]:
-> D:\Totalcmd\Test\dummy.txt
observation:
  • 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)
Ouput:

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.)
observation:
  • 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)
User avatar
nsp
Power Member
Power Member
Posts: 1801
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: [TC9.51] File list not generated (ConEmu)

Post by *nsp »

If the file is not present anymore this is probably an issue with conemu witch returns once launched and then TC delete tempo file.... You can use an intermediate batch to copy to a specific name the list of file and then launch conemu...
Post Reply