Quantcast
Channel: voidtools forum
Viewing all articles
Browse latest Browse all 1719

Development, plugins and third party software • Re: VBA and Everything, escape quotation mark

$
0
0
I have some workarounds for the space quotation problem with Shell().

Workaround 1:
use Everything regex, replace space with \s in Shell()

Code:

Shell("C:\Program Files\Everything\Everything.exe -s ""regex:Program\sFiles""",1)
Workaround 2:
enable Everything URL protocol, open hyperlink instead of Shell()

Code:

Dim sURL As StringsURL="es:""""""Program Files"""""""CreateUnoService("com.sun.star.system.SystemShellExecute").execute(sURL,"",0)  'for OpenOffice/LibreOffice Basic

Statistics: Posted by altoctave — Sun Feb 16, 2025 4:46 pm



Viewing all articles
Browse latest Browse all 1719

Trending Articles