- Use "%1" - This parameter is inserted automatically when using the >> button and selecting a program
- Use %1 - TC uses 8.3 short filenames if possible (quotes are added by TC when necessary)
- Don't specify the filename - TC will add the filename at the end (quotes are added by TC when necessary)
Quoting behavior that seems OK:
When a list of filenames is used or when the C switch is left out, quoting behavior seems wrong (short names are not used, quotes are not added when necessary):Button command: cm_Edit /CN="file 1.txt"
Command lines executed by TC:
(Editor: "C:\Program Files\Notepad++\notepad++.exe" "%1")
"C:\Program Files\Notepad++\notepad++.exe" "c:\TEST\_cm_edit\file 1.txt"
"C:\Program Files\Notepad++\notepad++.exe" "d:\TEST\_cm_edit\file 1.txt"
(Editor: "C:\Program Files\Notepad++\notepad++.exe" %1)
"C:\Program Files\Notepad++\notepad++.exe" C:\TEST\_cm_edit\FILE1~1.TXT
"C:\Program Files\Notepad++\notepad++.exe" "D:\TEST\_cm_edit\file 1.txt"
(Editor: "C:\Program Files\Notepad++\notepad++.exe")
"C:\Program Files\Notepad++\notepad++.exe" "c:\TEST\_cm_edit\file 1.txt"
"C:\Program Files\Notepad++\notepad++.exe" "d:\TEST\_cm_edit\file 1.txt"
Button commands:
cm_Edit /CN="file 1.txt|file 2.txt"L1
cm_Edit /CN=<"file 1.txt" "file 2.txt">L1
cm_Edit /N="file 1.txt"
Command lines executed by TC:
(Editor: "C:\Program Files\Notepad++\notepad++.exe" "%1")
"C:\Program Files\Notepad++\notepad++.exe" "c:\TEST\_cm_edit\file 1.txt"
"C:\Program Files\Notepad++\notepad++.exe" "c:\TEST\_cm_edit\file 2.txt"
"C:\Program Files\Notepad++\notepad++.exe" "d:\TEST\_cm_edit\file 1.txt"
"C:\Program Files\Notepad++\notepad++.exe" "d:\TEST\_cm_edit\file 2.txt"
(Editor: "C:\Program Files\Notepad++\notepad++.exe" %1)
"C:\Program Files\Notepad++\notepad++.exe" c:\TEST\_cm_edit\file 1.txt
"C:\Program Files\Notepad++\notepad++.exe" c:\TEST\_cm_edit\file 2.txt
"C:\Program Files\Notepad++\notepad++.exe" d:\TEST\_cm_edit\file 1.txt
"C:\Program Files\Notepad++\notepad++.exe" d:\TEST\_cm_edit\file 2.txt
(Editor: "C:\Program Files\Notepad++\notepad++.exe")
"C:\Program Files\Notepad++\notepad++.exe" c:\TEST\_cm_edit\file 1.txt
"C:\Program Files\Notepad++\notepad++.exe" c:\TEST\_cm_edit\file 2.txt
"C:\Program Files\Notepad++\notepad++.exe" d:\TEST\_cm_edit\file 1.txt
"C:\Program Files\Notepad++\notepad++.exe" d:\TEST\_cm_edit\file 2.txt

