1. system_exec

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?

new topic     » topic index » view message » categorize

2. Re: system_exec

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: system_exec

Thanks .. I'll give it a try.. However, I believe that "system" and "walk_dir" have the same problem

new topic     » goto parent     » topic index » view message » categorize

4. Re: system_exec

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu