Posts: 1,271
Threads: 399
Joined: Mar 2003
when i drop files with only one word as filename on my macro88 shortcut on desktop, then i get
QM command line error: ...F:\tmp\tmp\Cleopatra.avi
when i add a whitespace after filename it works
F:\tmp\tmp\Cleopatra .avi
Macro
Macro88
the desktop icon is generated by qm.
("C:\Program Files (x86)\Quick Macros 2\qmcl.exe" M "Macro88")
Posts: 12,090
Threads: 142
Joined: Dec 2002
If dropped file path is without spaces, Windows does not enclose it in double quotes. QM does not recognize such command line.
C:\Program Files (x86)\Quick Macros 2\qmcl.exe" M "Macro88" "file with spaces, works"
C:\Program Files (x86)\Quick Macros 2\qmcl.exe" M "Macro88" file_without_spaces_error
Posts: 1,271
Threads: 399
Joined: Mar 2003
Gintaras Wrote:If dropped file path is without spaces, Windows does not enclose it in double quotes. QM does not recognize such command line.
so you got any idea how to bypass this?
Posts: 12,090
Threads: 142
Joined: Dec 2002
Create .exe instead. It receives command line through _command variable.
Posts: 1,271
Threads: 399
Joined: Mar 2003
found a way.
just add manually A to the shortcut
"C:\Program Files (x86)\Quick Macros 2\qmcl.exe" M "Macro88" A
Macro
Macro88
function $files
out files
Posts: 12,090
Threads: 142
Joined: Dec 2002
Or
C:\Program Files (x86)\Quick Macros 2\qmcl.exe" M "Macro88" C -
When with C, enclosing in " is not necessary.
But when you double click, command line ends with C and nothing more. Error. Therefore i added -. Let macro remove it.
Posts: 1,271
Threads: 399
Joined: Mar 2003
Good thinking, i had double click not in mind.
Thanks!