PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → Drive Access
Drive Access
Iniciado por Michael George, 16,jun. 2016 14:28 - 1 respuesta
Publicado el 16,junio 2016 - 14:28
We recently converted our projects to 21 and one of the issues that we have been having has been directory access. In 19 and 20 we were able to access the necessary areas on the network and create new directories as needed. However, after converting to 21 the fmakedir command consistently tells us we can't access these same areas. I know this sounds like a read-write issue, so we've tried everything including running as admin and opening the needed areas security to everyone, but this has not fixed the issue. Example below:

sTempDir is string = "P:\MI4Data\Temp\pdffolder\"
IF fDirectoryExist(sTempDir) = False THEN
fMakeDir(sTempDir)
END

//Above produces the error:
//Unable to create <P:\MI4Data> directory
//System error code: 3
//System error message:
//The system cannot find the path specified
//dump of the error of 'wd210std64.dll' module (21.0.88.0)
Publicado el 09,septiembre 2016 - 11:12
Unfortunately our team discovered that version 21 has lost the ability to read mapped drives at run-time. We were forced to therefore use the NetworkDisconnect and NetworkConnect functions to reestablish connection with mapped drives during run-time. This is very unfortunate since this was not required of previous versions and worked without issue until we upgraded our project. This should really work without the need to remap drives.