Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DOS HELP with VFP
Message
De
24/04/2001 15:42:12
 
 
À
24/04/2001 15:34:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00499218
Message ID:
00499234
Vues:
21
>I am writing a VFP application that will connect a user and map the user to a drive using the RUN NET USE command in a VFP form. I need to be able to obtain an error number or have the screen not release after posting a successful logon or unsuccessful login attempt. I have tried using the ">" to redirect the screen message to a file with no luck. I am not able run a batch file because the username and password values are obtain from form controls. Does anyone have any suggestions has to how to obtain messages from the "net use" command???


There are other ways through the API to make connections, but you can use the ">" to send info to a file. I just tried it and it works OK.
RUN NET USE * \\machine\share > yourfile.txt
yourfile.txt contained:
Drive G: is now connected to \\machine\share.


The command completed successfully.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform