Passing a quoted string in the System.Execute 'dir' argument.
Posted: Fri Jun 18, 2021 11:50 am
I've been using the following System.Execute command to successfully launch and join a regular ZOOM call using a Macro Button (confno and pwd obviously anonymised):
System.Execute("%windir%\system32\cmd.exe","%temp%","/C %APPDATA%\Zoom\bin\Zoom.exe %' --url=zoommtg://zoom.us/join?action=join&confno=1111111111&pwd=AAAAAAAA%'");
It works, but I think there could be a more elegant solution that doesn't rely on using the ‘CMD’ shell. I tried the following approach:
System.Execute("%APPDATA%\Zoom\bin\Zoom.exe", "%temp%", " --url=zoommtg://zoom.us/join?action=join&confno=&pwd=1111111111&pwd=AAAAAAAA");
Although it successfully launches ZOOM, the conference number and password aren't recognised by ZOOM and it doesn't join the call. I think it might be that ZOOM needs to have the string enclosed in quotes but the System.Execute strips the quotes from the ‘dir’ string? I’ve tried using the percent+quote (%’) and percent+ampersand (%&) in various combinations, but without success.
I can’t find an answer in the forum, so I am asking for suggestions?
System.Execute("%windir%\system32\cmd.exe","%temp%","/C %APPDATA%\Zoom\bin\Zoom.exe %' --url=zoommtg://zoom.us/join?action=join&confno=1111111111&pwd=AAAAAAAA%'");
It works, but I think there could be a more elegant solution that doesn't rely on using the ‘CMD’ shell. I tried the following approach:
System.Execute("%APPDATA%\Zoom\bin\Zoom.exe", "%temp%", " --url=zoommtg://zoom.us/join?action=join&confno=&pwd=1111111111&pwd=AAAAAAAA");
Although it successfully launches ZOOM, the conference number and password aren't recognised by ZOOM and it doesn't join the call. I think it might be that ZOOM needs to have the string enclosed in quotes but the System.Execute strips the quotes from the ‘dir’ string? I’ve tried using the percent+quote (%’) and percent+ampersand (%&) in various combinations, but without success.
I can’t find an answer in the forum, so I am asking for suggestions?