Plugin to send printfiles to printer "copy test.prn lpt

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

User avatar
klsgfx
Junior Member
Junior Member
Posts: 74
Joined: 2003-11-21, 14:40 UTC
Location: Berlin

Post by *klsgfx »

I browsed the forum and found another possible solution.

As nsp proposed to use the %P%S parameter, you got this:
Peter wrote:
nsp wrote:...Did you try standard TC command, using %P%S or %p%s (DOS Names) as prfile32.exe seems to only work well with full name ?....
Yes, it works. :D
But only with one file :(
%P%S should work - but only if you select a few files and press the button. If you drag the selected files onto the button, only the file being dragged is passed as the parameter.

To test I created another button and this works with more then one file selected - if I press and do not drag:

Code: Select all

TOTALCMD#BAR#DATA
C:\tmp\test pfad\Sonderprogramme\PrintFile\PRFILE32.EXE
%P%S
C:\tmp\test pfad\Sonderprogramme\PrintFile\PRFILE32.EXE

C:\tmp\test pfad\Sonderprogramme\PrintFile\

-1
This works for me.

Cheers
Klaus

[Edit]:
Now I tried using my first button:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\tools\lst2str.exe
/X:"c:\tmp\test pfad\Sonderprogramme\PrintFile\PRFILE32.EXE" /L:%L /N:30 /C:2048
C:\tmp\test pfad\Sonderprogramme\PrintFile\PRFILE32.EXE
PrintFile


-1
If selecting more then one file and pressing the button it works, if dragging files to the button I get the same error as described by you.

Conclusion:

Press, never drag.

:?
User avatar
nsp
Power Member
Power Member
Posts: 1917
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

Reading prfile32.chm, it appear that if you put a @ in front of a file name it is interpreted as a file list !
So you could try the following :

Code: Select all

TOTALCMD#BAR#DATA
"%COMMANDER_PATH%\Sonderprogramme\PrintFile\prfile32.exe"
@%L
D:\Program Files\totalcmd\TOTALCMD.EXE,24
Plotdateien versenden


-1
hope it solve your pb, dragging file is not working as expected !

If not you will probably have to send file by file, in this case you can use TCBL.
User avatar
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

Conclusion:
Press, never drag.


Bingo! Yes, indeed! :!:

klsgfx and nsp - many thanks for your advice and investigations. Now it works in a basic way. Regrettably it does not keep exactly the order of the selcted files ...

I have 20 files, named from 1.plt - 20.plt. Sort them from 20 to 1, select all, press the button - two times the order of files ist changed, like 20-19-18-16-17-15-14-13-11-12-10-...

But I will stop my testing now. The results are good, but not 100% - and in this case it have to be 100% ... (But if you are full of energy and ideas, of course I will take a look .)

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
nsp
Power Member
Power Member
Posts: 1917
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

Peter wrote:I have 20 files, named from 1.plt - 20.plt. Sort them from 20 to 1, select all, press the button - two times the order of files ist changed, like 20-19-18-16-17-15-14-13-11-12-10-...
Hint !
In TC 7.55, the order of selected files reflect the order of what you see in current panel. If you reorder, the selected file list is reordered. To verify how the list is passed, you can use the following !

Code: Select all

Command: notepad
parameter: %P
Post Reply