Referring to the manual
Under Portable File Associations (PFA)
|"Append date|E:\Test\Kiss.ico" \;*>::rename b, '*-<datem yyyymmdd>'
I have trouble to understand the definition, especially the "|" (pipe) at the front.
Questions
1. What's the purpose of the first pipe ("|") above?
2. What's the purpose of "b" after "rename"?
Thanks.
|"Append date|E:\Test\Kiss.ico" \;*>::rename b, '*-<datem yy
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
-
binocular222
- Posts: 1424
- Joined: 04 Nov 2008 05:35
- Location: Win11, Win10, 100% Scaling
Re: |"Append date|E:\Test\Kiss.ico" \;*>::rename b, '*-<date
a) The pipe will separate between caption and icon
"Caption|<xyicons>\MyIcon.ico"
You only see caption (and icon) when pressing Ctr+Enter, which pop-up a menu listing all PFA matched with current file's extension and also Windows' default program
b) b = batch rename
See Help > Scripting Command Reference:
"Caption|<xyicons>\MyIcon.ico"
You only see caption (and icon) when pressing Ctr+Enter, which pop-up a menu listing all PFA matched with current file's extension and also Windows' default program
b) b = batch rename
See Help > Scripting Command Reference:
Code: Select all
rename
Renames the currently selected List item(s) according to the defined pattern and options.
Syntax
rename [mode (b|r|s|k|e)], pattern, [preview (p)], [itemlist], [flags=1], [illegalcharsreplacewith]
mode Defines the mode for the rename operation:
b: [Default] Batch Rename
r: RegExp Rename
s: Search and Replace
k: Keep Particular Characters
e: Set Extension
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: |"Append date|E:\Test\Kiss.ico" \;*>::rename b, '*-<date
Hi binocular222,binocular222 wrote:a) The pipe will separate between caption and icon
"Caption|<xyicons>\MyIcon.ico"
You only see caption (and icon) when pressing Ctr+Enter, which pop-up a menu listing all PFA matched with current file's extension and also Windows' default program
Referring to your Answer a),
The "Caption | icon" definition is a standard in XY.
But in this case, an additional "|" (the first pipe) is found before "Append date|E:\Test\Kiss.ico"
Then, wha't the purpose of the first pipe?
Is this a typo? I have never seen the two pipes ("|") appearing in any PFA definitions.
Referring to your Answer b), thanks.
-
binocular222
- Posts: 1424
- Joined: 04 Nov 2008 05:35
- Location: Win11, Win10, 100% Scaling
Re: |"Append date|E:\Test\Kiss.ico" \;*>::rename b, '*-<date
oh, your bold text confuse me.
Help > Portable Openwith Menu (::rtfm "idh_pom.htm")
Help > Portable Openwith Menu (::rtfm "idh_pom.htm")
Code: Select all
(9) You can define associations that should only be listed in the POM, but not be triggered on "open". It's done by simply prefixing the | (pipe) character to the PFA. The following example allows you to have this PFA enabled and listed in the POM:
|exe;dll>::copytext <curname> <curver>
while double-clicking an EXE file will still run the EXE, and not the PFA. In the PFA dialog, prefixed (= POM-only) items are shown in color "Marked Text 2" (see Configuration | Colors).
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: |"Append date|E:\Test\Kiss.ico" \;*>::rename b, '*-<date
binocular222,binocular222 wrote:oh, your bold text confuse me.
Help > Portable Openwith Menu (::rtfm "idh_pom.htm") ...
Before your post, I didn't the "|" prefix signals a POM.
And I found it from the manual.
Thanks for your help.
XYplorer Beta Club