PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Subst.exe
Subst.exe
Iniciado por guest, 30,jul. 2015 14:38 - 5 respuestas
Publicado el 30,julio 2015 - 14:38
Hi,

Does anybody know if there is a function in Windev like Subst.exe. This is used to map
a drive to a specific map.

Regards,

Aad
Publicado el 30,julio 2015 - 14:51
Hi

I've been using compileBatchToExe ('cause I dun wanna domain user to
see admin login/passwd and the mapping details) as a wrapper then applying ShellExecute to complete the map drive, it's workaround and works as a charm.

HTH

Cheers

King
Publicado el 30,julio 2015 - 17:35
try with NetworkConnect
Publicado el 31,julio 2015 - 11:41
Hi King and Paulo,

@King: I don't exactly know what you mean
@Paulo: I thing Networkconnect only works with networkmappings, not a local drive/map

Best regards,

Aad
Publicado el 31,julio 2015 - 12:18
Aad, try this

// create Z drive for C:\Tmp
API("kernel32","DefineDosDeviceA",0,"Z:","C:\Tmp")

//. remove Z drive
API("kernel32","DefineDosDeviceA",2,"Z:","C:\Tmp")
Publicado el 31,julio 2015 - 12:51
Hi Arie,

Thank you for your suggestion. In this particular case Subst,exe wil do. I was only wondering if there is a specific Windev function i.e. NetworkConnect().

Thanks again.

Best regards,

Aad