Re: system_exec
- Posted by jimcbrown (admin) Dec 24, 2013
- 1736 views
buzzo said...
Having a problem mapping shares in Win 7.. using Euphoria v4.0
Using
system_exec("net use z: \"\\\\Share\\My File\"",2)
will not map the share.. produces a system error.
Both shares can be mapped from the command line:
net use x: "
Share\My File"
Is there a solution?
There is a known issue with using spaces and quotes with system_exec() on Windoze.
A patch was made to fix this, http://openeuphoria.org/forum/m/122196.wc , but it's so new that there is no release with this fix.
The usual workaround is to pass parameters through shortfilename(), see http://openeuphoria.org/forum/m/122121.wc , but I suspect that this is not applicable for remote shares. Instead, I recommend that you try Kat's solution here instead: http://openeuphoria.org/forum/m/122976.wc