Notifications
Clear all

[Closed] shellLaunch – directory on other computer

Hi,

So I want to open directory, lets say “//THIS_COMPUTER//PROJECTS//”.

What I noticed it does not work with shellLaunch and DOScommand.

I can open some local dircetories, but not those on THIS_COMPUTER.

So this works fine:

shellLaunch "C://" ""

But this does not (only opens explorer to documents):

shellLaunch "explorer.exe" "//THIS_COMPUTER//PROJECTS//"
DOScommand "explorer.exe \"//THIS_COMPUTER//PROJECTS//""
DOScommand "explorer.exe \"\\THIS_COMPUTER\\PROJECTS\\""

PS. Right now I “hack” it this way:

setDir #scene "//THIS_COMPUTER//PROJECTS//"
shellLaunch (getDir #scene) ""

And it works as intended. But I would really want to be able to run shellLaunch from string as well

2 Replies

You mean to open a network folder? Your paths are incorrect. Use double backslashes before the name, which means quadruple backslashes in the string.

shelllaunch "explorer" "\\\\someNetworkComputer\\some\\path\\"

Have in mind that windows cmd itself doesn’t handle network paths, many things might not work as expected using DOScommand.

Thanks indeed this works. And unfortunately it only works for backslashes not slashes. Dammit But thats a minor issue and can solve it quickly