Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running system commands
Message
 
 
To
22/03/2007 09:40:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01206831
Message ID:
01207046
Views:
29
>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.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform