Page 2 of 2
Re: script open a selected file with shared application
Posted: 17 Apr 2026 10:33
by highend
Try:
Code: Select all
if (strpos(<curitem>, ":") != -1) { $item = "\\?\" . <curitem>; }
else { $item = regexreplace(<curitem>, "^\\\\", "\\?\UNC\"); }
run """%SystemRoot%\System32\rundll32.exe"" ""%ProgramW6432%\Parallels\Parallels Tools\Plugins\SharedHostApps.dll"",Launch 5919f138425a1941b61b211e81092319 $item";
Re: script open a selected file with shared application
Posted: 17 Apr 2026 11:54
by 7iben
Unfortunately not. There seems to be a bug. It only opens the program; the file doesn't open. I've also noticed that it only opens files located directly on the desktop. As soon as they're in a folder, the command stops working:
run """%SystemRoot%\System32\rundll32.exe"" ""%ProgramW6432%\Parallels\Parallels Tools\Plugins\SharedHostApps.dll"", Launch 5919f138425a1941b61b211e81092319 <curitem>";
Re: script open a selected file with shared application
Posted: 17 Apr 2026 11:55
by highend
It does work for files that don't have space(s) in name or path but not for the ones that have?
Re: script open a selected file with shared application
Posted: 17 Apr 2026 13:21
by 7iben
Files containing spaces also open on my desktop.
Re: script open a selected file with shared application
Posted: 17 Apr 2026 13:24
by highend
Then this is tied to Parallels and how it's working...
Re: script open a selected file with shared application
Posted: 17 Apr 2026 13:27
by 7iben
If the folder name on the desktop contains a space, it won't work. If it doesn't, it will work.
Re: script open a selected file with shared application
Posted: 17 Apr 2026 13:31
by highend
That's exactly the opposite of
Files containing spaces also open on my desktop.
^^
Re: script open a selected file with shared application
Posted: 17 Apr 2026 13:36
by 7iben
Sorry, I need to correct myself. I probably pressed the enter key while trying to do this without being in the command line. This caused Xyplorer to start Illustrator as the default application, even though the file contains a space. It's correct as you say. Files and folders with spaces don't work.
Re: script open a selected file with shared application
Posted: 17 Apr 2026 13:38
by 7iben
Network drives now also work up to the point where a space appears.
Re: script open a selected file with shared application
Posted: 17 Apr 2026 13:41
by highend
Then fix the quoting of the run call to take that into account...
Re: script open a selected file with shared application
Posted: 17 Apr 2026 13:52
by 7iben
Should I adjust something here? I'm not familiar with this:
run """%SystemRoot%\System32\rundll32.exe"" ""%ProgramW6432%\Parallels\Parallels Tools\Plugins\SharedHostApps.dll"", Launch 5919f138425a1941b61b211e81092319 <curitem>";
Re: script open a selected file with shared application
Posted: 18 Apr 2026 00:08
by jupe
You could try this alternative in x64 too:
Code: Select all
runret("""%SystemRoot%\System32\rundll32.exe"" ""%ProgramW6432%\Parallels\Parallels Tools\Plugins\SharedHostApps.dll"",Launch 5919f138425a1941b61b211e81092319 ""<curitem>""");
else
Code: Select all
run """%SystemRoot%\System32\rundll32.exe"" ""%ProgramW6432%\Parallels\Parallels Tools\Plugins\SharedHostApps.dll"",Launch 5919f138425a1941b61b211e81092319 <curitem_dos>";
Re: script open a selected file with shared application
Posted: 20 Apr 2026 14:08
by 7iben
Neither of them work for me on x64. They both work on x32.
Thanks to everyone for the help.