Page 1 of 1

Using shell() command with UNC pathname

Posted: Sat Apr 19, 2008 9:58 pm
by stoni
Hi,
from a macro I want to execute an external program, stored on the server with the shell() command. But I have to use the UNC notation (\\server\path\program.exe). When I run the macro, I always get the failure: "File could not be found!". Does anybody knows, if it is possible to use UNC notation with the shell() command, and whats the correct syntax? I tryed also the Url notation - without success too... :cry:
With the oShell.execute("\\server\path\program") command it works properly, but I need the functionality to wait until the called programm returns...

I want your kindly helps.
Thanks a lot
stoni

Re: Using shell() command with UNC pathname

Posted: Sun Apr 20, 2008 6:12 pm
by Villeroy
This is quite specific to the Windows operating system, but OOo is a multi-platform suite. I could not find any references to UNC in the developer's guide. However, the Basic language provides one Windows specific goodie. You may be able to get the system path out of the UNC by calling some Windows dll. See Basic online help on keyword "Declare".