PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD19] How to create directories and .pdf on an unc path?
[WD19] How to create directories and .pdf on an unc path?
Iniciado por guest, 28,abr. 2015 14:56 - 2 respuestas
Publicado el 28,abril 2015 - 14:56
Hi,

my program has to create automatically directories for contacts, orders, invoices and so on.

On my development pc i can easily create these needed folders, for example:

sDirectory is string = "c:\ est\customers\Müller\orders_2015"
IF NOT fDirectoryExist(sDirectory ) THEN fMakeDir(sDirectory)

To open the created directory i use

sDirectory is string = c:\ est\customers\Müller\orders_2015"
ExeRun("EXPLORER.EXE "+ sDirectory , exeActive, exeDontWait)

But now the program has to create these folders on a shared folder (\\mmfls026\mm$) and my code doesnt work anymore. The program can be run more than one time.

I can open the directory when i enter the unc directly in the internet explorer but not in the windows explorer.

Can you give me a hint how to handle this? How to create the folders and how to open them?


Greetings
Markus
Publicado el 28,abril 2015 - 16:16
Hi Markus,

UNC paths are supported by all functions as far as I know. Just remove the $ since this is a hidden character code and it should work very well.

Example: fDirectoryExist("\\mmfls026\mm\otherfolder")

Best regards,
Alexandre Leclerc
Publicado el 29,abril 2015 - 10:48
Hi Alexandre,

thanks for your answer.

The admin gave me the unc path but he didnt gave me the rights...