PDA

View Full Version : Test if share is open



dufaure2
03-10-2010, 08:16 AM
Hello, Wel, with Net use, i open a share like h:

How can i test if h: is ok

I'm try
test = Folder.DoesExist("h:\\");
if (test ~=0) then
Dialog.Message("Error", "Le lecteur ne s'est pas monté", MB_OK, MB_ICONEXCLAMATION);
else
Dialog.Message("Connexion OK", "Le lecteur h: est monté", MB_OK, MB_ICONEXCLAMATION);
end

But it dosn't work

Thanks for your help ;)

Sakuya
03-10-2010, 08:22 AM
Maybe this'll work?


DoesDriveExist = (Drive.GetType("F:") ~= -1);

dufaure2
03-10-2010, 09:45 AM
ok good thancks a lot

;)