Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2009
    Posts
    24

    Test if share is open

    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

  2. #2
    Join Date
    Oct 2009
    Location
    Merton, United Kingdom
    Posts
    684
    Maybe this'll work?

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

  3. #3
    Join Date
    Nov 2009
    Posts
    24
    ok good thancks a lot


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts