context-menu-launcher icon indicating copy to clipboard operation
context-menu-launcher copied to clipboard

Filenames with space

Open Frank-Einstein opened this issue 8 years ago • 2 comments

Bug: It is impossible to use this executable on any file containing a space in its filename. Normally each filename needs to be enclosed between quotes to avoid this bug and using "$files" (with the quotes) in the command line is not working because it's not enclosing each filenames individually.

Is it possible update the code so that it will add quotes around each filenames? It can be by default or maybe using an optional argument like "--si-timeout" ? Example: --quotes

This executable is still very useful for me but this bug is really a pain-in-the-ass since I am working with a lot of filenames containing spaces.

I am aware there have been no updates since like 2 years but I still hope the author is still alive and will be kind enough to fix this bug. If there is no fix, I will definitely need to learn C++ so I can fix this by myself... :(

Finally, a big thank you to the author for sharing this very useful program and it's source code!

Frank-Einstein avatar Jun 17 '17 10:06 Frank-Einstein

Spaces work for me. Simply use

"C:\singleinstance\singleinstance.exe" "%1" "c:\someprogram\program.exe" "$files"

instead of

"C:\singleinstance\singleinstance.exe" %1 "c:\someprogram\program.exe" $files

Good luck. :-)

kubajar avatar Aug 14 '17 16:08 kubajar

Duplicate of #1

u01jmg3 avatar Jan 11 '20 23:01 u01jmg3