Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running system commands
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01206831
Message ID:
01207047
Vues:
26
>>Hi Naomi,
>>
>>
>>The command is a file transfer using pscp.
>>
>>! /N7 pscp.exe -l username -pw password tranfile.txt username@serverip:directory
>>
>>When I attempt to execute the command from within the click event it fails saying the command can't find the specified file but when I put the exact command within a batch file it works just fine. What gives ?
>>
>>PSCP.exe, tranfile.txt is in the same directory as the form and it is the default directory.
>>
>>I don't want to use a batch file because of the userid & password.
>>
>>
>>
>>thanks,
>
>I think you need to invoke pscp with the full path and tranfile.txt with the full path too. Try that.

Yes, This is because DOS doesn't know about the default dir within VFP
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform