Hello!
Has anyone written anything in vb.net that calls CoreFTP to send a file? I'm writing a windows service to do this using the command line feature, but it keeps saying it can't find the file. Any ideas? Thanks!
-gderoeck
Calling CoreFTP from vb.net
This is supposed to be an upload - here's the line i'm using:
c:"\program files\coreftp\coreftp.exe" -O -u "c:\test1.txt" -site mysite -s
Since I'm trying to run this through a shell, I've tried the following as well:
c:"\\program files\\coreftp\\coreftp.exe" -O -u "c:\\test1.txt" -site mysite -s
Niether one work. I've narrowed it down to know that the problem exists when the coreFTP program is called. It says it can't find the file, meaning it can't find the coreFTP program.
Any ideas?
c:"\program files\coreftp\coreftp.exe" -O -u "c:\test1.txt" -site mysite -s
Since I'm trying to run this through a shell, I've tried the following as well:
c:"\\program files\\coreftp\\coreftp.exe" -O -u "c:\\test1.txt" -site mysite -s
Niether one work. I've narrowed it down to know that the problem exists when the coreFTP program is called. It says it can't find the file, meaning it can't find the coreFTP program.
Any ideas?
Just fai - (for anyone's information), I figured it out. I called a batch file and ran it from .Net. I think the problem was when the command line was opened from .net, it didn't recognize the c: command at the beginning, for some reason. The batch file looks like this:
c:
cd ..
cd ..
cd ..
cd ..
"\program files\coreftp\coreftp.exe" -O -u "C:\test1.txt" -site mysite -s
Maybe my reason it's working is wrong, but it works nonetheless. Cheers!
c:
cd ..
cd ..
cd ..
cd ..
"\program files\coreftp\coreftp.exe" -O -u "C:\test1.txt" -site mysite -s
Maybe my reason it's working is wrong, but it works nonetheless. Cheers!