1. system_exec
- Posted by buzzo Dec 24, 2013
- 1791 views
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.
However
system_exec("net use z: \\\\Share\\File",2)
will map the share..
Both shares can be mapped from the command line:
net use z:
Share\File
net use x: "
Share\My File"
(something seems to produce newlines in the above text.. ??)
Is there a solution?
2. Re: system_exec
- Posted by jimcbrown (admin) Dec 24, 2013
- 1737 views
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
3. Re: system_exec
- Posted by buzzo Dec 24, 2013
- 1700 views
Thanks .. I'll give it a try.. However, I believe that "system" and "walk_dir" have the same problem
4. Re: system_exec
- Posted by petelomax Dec 25, 2013
- 1640 views
You could also try system_wait (wow, over 10 years old now) or if you have Edita installed there is a syswait.ew file in that.
Regards, Pete