MakeBat parameters: doc., consistency, additional; ini

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Ralph
Member
Member
Posts: 100
Joined: 2004-08-21, 14:58 UTC
Location: USA

MakeBat parameters: doc., consistency, additional; ini

Post by *Ralph »

1.
MakeBAT documentation does not explain %O and %E.
The MakeBAT documentation file (install.txt) does not list the parameters %O and %E under "supported placeholders." These parameters are mentioned briefly in the change log, where users might overlook the information.
_______________________

2.
MakeBAT results for %P, %N, and %D depend on kind of directory.
The MakeBAT parameters %P, %N, and %D return different results depending on how the directory was created.
Example file ID: c:\Folder1\Folder2\BaseName.Type

a. If the file above is in a real directory, then MakeBAT returns these parameter values:
%P = c:\Folder1\Folder2\
%N = BaseName.Type
%D = (nothing)

b. If the file above is in a virtual directory created by Search\Listbox, then MakeBAT returns these parameter values:
%P = (nothing)
%N = c:\Folder1\Folder2\BaseName.Type
%D = c:\Folder1\Folder2\

c. If the file above is in a virtual directory created by Branch View, then MakeBAT returns these parameter values:
%P = c:\Folder1\
%N = Folder2\BaseName.Type
%D = Folder2\

In all cases, the results from %M, %O, and %E are the same, so no problem:
%M = BaseName.Type
%O = BaseName
%E = Type

I want to be able to use the same MakeBAT command string regardless of how the directory is created, so I want the full path to be available consistently from one parameter.
_______________________

3.
MakeBAT feature request: parameter for last node in path.
It would be useful to have a MakeBAT parameter to return the last node in the path.
Example file ID: c:\Folder1\Folder2\BaseName.Type
In this example, I would like a parameter to return Folder2 or Folder2\

In Branch View, parameter %D returns Folder2\ but I want this result whether or not the directory is created by Branch View.
_______________________

4.
MakeBAT cannot write to C:\Program Files\TotalCmd\makebat.ini, under Windows 7.
Under Windows 7, moving Total Commander from C:\Program Files\TotalCmd\ to C:\TotalCmd\ allows makebat.ini to store previous command strings. Are users notified about this problem and solution?


Thanks,
Ralph (license #33870)
User avatar
nsp
Power Member
Power Member
Posts: 1913
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: MakeBat parameters: doc., consistency, additional; ini

Post by *nsp »

You can find alternatives to makebat that works with search result depending of what you want to do with such bat files.
Post Reply