Task - Everything works but..

Core FTP client questions and answers
Locked
okftp
Posts: 1
Joined: Tue Jun 18, 2013 2:45 pm

Task - Everything works but..

Post by okftp »

I have a task\bat file scheduled to pick up a file and place it on a folder on my pc. I go to a site, pick up a file, datestamp it at the front of the file name and put .xls extension on it, and put it on a folder on the same server running core.

Ive logged the task and everything seems to work (see below), but - the file doesnt get placed in the folder specified. Its not anywhere on the server.

So, according to the logs, it looks like Core went out, got the file, renamed it, and placed it just as commanded, but there is no such file in the folder specified. When I first set this up, it worked perfectly for a couple of weeks. Now, nothing via the task. I can manually use Core and retrieve the file successfully.

Any ideas? Im stuck.

command:
"C:\Program Files\CoreFTP\coreftp.exe" -s -O -site <sitename> -d /<sitefolder>/<filename> C:\<myfolder>\<mysubfolder>\<filename> -log C:\<myfolder>\transferlogs\download.log

set date2=%date:~4,2%%date:~7,2%%date:~12,2%
ren C:\<myfolder>\<mysubfolder>\<filename> %date2%_<renamed filename>

end of core log results:
221 Goodbye.
sent 38, recd 38
Total uploaded files: 0
Total uploaded data: 0
Total downloaded files: 1
Total downloaded data: 12,214 KB

task log results:
C:\scripts>"C:\Program Files\CoreFTP\coreftp.exe" -s -O -site <sitename> -d /<sitefolder>/<filename> C:\<myfolder>\<mysubfolder>\<filename> -log C:\HDSXML\transferlogs\download.log

C:\scripts>set date2=061813

C:\scripts>ren C:\<myfolder>\<mysubfolder>\<renamedfile>
cp
Posts: 124
Joined: Sun Sep 11, 2011 5:18 am

Post by cp »

When you echo out the values, what are you getting?
Locked