massagela.blogg.se

Ghisler total commander
Ghisler total commander











Whats the real problem, you can see in your batch that the parameter is empty If I want it to do all the files without manually selecting them first, it puts the converted files in the same directory because it never receives the target path. It's meant to send the converted files to the target window, but that only works if I select the files. If I've selected any files, or even just left the cursor on a file, a list file will be created and sent to the script, and it will use that to only convert the selected files. If there's no list, it converts all the files in the directory. The script checks to see if Total Commander sent it a list of files to process. I made a script that converts files, and the button to call it is supposed to send both the target path and a list file, if anything was selected.

ghisler total commander

Of course, I know someone will ask why anyone would want to use the %F parameter, which creates a list of selected files, if no files are selected. I checked past versions of Total Commander, and it seems that it always behaved this way, at least back to v7.xx. %N doesn't interfere with other parameters, even if no files are seleceted/under the cursor. As far as I can tell, %F is the only parameter that does this. The contents (or lack thereof) of one parameter shouldn't negate the sending of completely separate parameters. Now delete the %F parameter, then try it again, and it will print the source and target paths to the window, even though the %N parameter is as empty as %F was. Instead of printing the source and target paths as expected, it will simply print ECHO is off., because nothing was sent to the command line. Make sure that no files are selected and that the cursor is on the at the top of the source window. Save it as test.bat, then create a new button on the Buttonbar that points to it, and include the parameters %P %T %N %F.













Ghisler total commander