|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by TomPreen in X-Windows Window Manager, FoxPro Database, Linux Setup
I am sending files from Windows XP to a remote Linux Server using pscp.
This works fine using the command line functions but I need to automate the process from an application and am using shellexecute to achieve this.
When the code executes the function returns an integer greater than 32 but nothing is transferred.
1:
2:
3:
4:
5:
6:
7:
|
xmlfile = "myfile.xml"
cFileName = "e:\tmc\sftp\pscp.Exe"
cAction = "open"
passwd = "-pw passwd"
sftptarget = "loginname@ipaddress:/targetdir/"+xmlfile
cParams = passwd+" "+xmlfile+" "+sftptarget
hasworked = ShellExecute(0,cAction,cFileName,cParams,"",3)
|
20091118-EE-VQP-93 - Hierarchy / EE_QW_3_20080625