Process proc = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = "c:\\program files\\coreftp\\coreftp.exe",
Arguments = " -ssh -s -u " + ConfigurationManager.AppSettings["DevCLQPDFFolder"] + dtFile.Rows[0]["fileName"].ToString() + " -p " + ConfigurationManager.AppSettings["DevExelaPDFFolder"] + dtFile.Rows[0]["fileName"].ToString(),
UseShellExecute = false,
UserName = "user",
PasswordInClearText = "password",
RedirectStandardOutput = false,
CreateNoWindow = true,
Domain = ConfigurationManager.AppSettings["ExelaHost"]
}
};
proc.Start(); <--- error occurs here
Here is the argument
-SSH -s -u -site New_ExcelaFTP c:\\myfolder\\incoming\\myfile.pdf -p /test/incoming/Onshore/Ready/myfile.pdf
Using C# Process throws invalid password or username
-
- Site Admin
- Posts: 987
- Joined: Mon Mar 24, 2003 4:37 am
Re: Using C# Process throws invalid password or username
-SSH -s -site New_ExcelaFTP -u c:\\myfolder\\incoming\\myfile.pdf -p /test/incoming/Onshore/Ready/myfile.pdf
Re: Using C# Process throws invalid password or username
Thanks for the post. But when I go to the site it is supposed to get the file, it is not there. I have tried to have them help me but they are clueless. I removed the username and password to use the site but still no file.
How can I tell if it is actually using -SITE?
I am using the correct site now and it is working. THANKS!
How can I tell if it is actually using -SITE?
I am using the correct site now and it is working. THANKS!