[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.

Question
[x]
Attachment Details

Windows XP shellexecute parameters

Asked by TomPreen in X-Windows Window Manager, FoxPro Database, Linux Setup

Tags: Windows SDK Visual Foxpro Linux

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)
[+][-]06/12/09 02:06 PM, ID: 24616170Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/12/09 02:09 PM, ID: 24616197Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/12/09 09:14 PM, ID: 24617746Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/13/09 04:34 AM, ID: 24618721Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/13/09 06:47 AM, ID: 24619207Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93 - Hierarchy / EE_QW_3_20080625