pro minusáře, kteří neví, která bije: 3.4.1 Batch Parameters-------------------------------------------- The functions within ZTreeWin that can accept and interpret Batch parameters are the Ctrl-Batch and Alt-Batch commands, the ext.BAT batch files used by Open and Alt-Open, the eXecute and Alt-eXecute command lines, the configured Editor and Viewer command lines, and the F9 Application Menu scripts. Batch parameters provide a means for ZTreeWin to pass information about the current directory, file, or tagged files to an external program. The file created by the Ctrl-Batch command can also be used as a simple list of tagged file information which can then be used for other purposes. The following Batch parameters may be used to pass file and directory information to the batch file or command line. ZTreeWin will process these parameters, and pass the interpreted result to the generated batch file or command line. When in a Directory Window, the file name and extension information will be blank. %1 - Path and name - e.g. C:\2005\September\Test_File.txt %2 - Drive letter - e.g. C %3 - Directory path - e.g. \2005\September %4 - Name - e.g. Test_File %5 - Extension - e.g. txt %6 - Current directory - e.g. September %7 - Short path and name - e.g. C:\2005\SEPTEM~1\TEST_F~1.TXT %8 - Short name - e.g. TEST_F~1.TXT %a - Attributes - e.g. r.sh %d - Timestamp - e.g. 9-12-05 1:51:00 %s - Size - e.g. 1,234,567 When ZTreeWin is in split screen mode (F8), you also have access to the following Batch parameters to reference… the filename in the inactive file pane. %j1 - Path and name - e.g. D:\2005\September\Test_File.txt %j2 - drive letter - e.g. D %j3 - Directory path - e.g. \2005\September %j4 - Name - e.g. Test_File %j5 - Extension - e.g. txt %j6 - Current directory - e.g. September %j7 - Short path and name - e.g. D:\2005\SEPTEM~1\TEST_F~1.TXT %j8 - Short name - e.g. TEST_F~1.TXT %ja - Attributes - e.g. .a.. %jd - Timestamp - e.g. 9-01-05 1:49:20 %js - Size - e.g. 1,234,567 The above %a, %d, %j and %s parameters must be in lower case. Double percent signs (%%) will always be passed on to the generated batch file or command line as a single percent sign (%). You can use this to prevent ZTreeWin from interpreting a variable as one of its own Batch parameters, and to pass that variable on to the batch file or command line, where it will instead be interpreted by Windows. For example, %%1 and %%systemdrive%% will be generated as %1 and %systemdrive% in the batch file or command line. In addition, the following two parameters may be used: !! - Create a new line (in Ctrl/Alt-Batch only) %+ - For 4DOS/4NT users If a parameter resolves to a name or path containing a space, or any other character that may be interpreted as a separator in Windows (,;&=) ZTreeWin will automatically enclose the name or path in double quotes. If you manually add the quotes, additional quotes will not be added. ZTreeWin will not add the quotes if any character other than a space immediately precedes the parameter string. Therefore, if you do not want ZTreeWin to add the quotes, you can manually add the drive letter to prevent the quotes from being added, and still have a valid path. For example, quotes will not be added around the following, even if spaces or other separator characters are in the path or name: C:%3\%4.%5 Ukázat celý příspěvek