Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Test for network folder
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00816812
Message ID:
00817237
Vues:
20
>>Hello,
>>
>>I'm looking for a simple sample of code to test for a network folder.
>>
>>If it's not available (user not logged on) a message appears to advise user to quit the local application and logon to the network.
>>
>>This would happen when they try to copy of file to the server.
>>
>>Thanks,
>>
>>Jim Harvey
>>jharvey@hanoverpa.com
>>
>>p.s.
>>I tried searching the archives but keep getting a timeout message (?)
>
>You can use the directory function
>
>DIRECTORY('X:\folder') .OR. DIRECTORY('X:\')


Thanks for the help, here's what I ended up with,
***********************************
if ! directory("f:\foxdat\")
MESSAGEBOX("You are not logged onto the server, please quit the application, log on and try again",16,"Error")
thisform.release
else
***more code here
endif


Jim Harvey
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform