How do I call a script after completing a transfer?

Core FTP client questions and answers
Post Reply
Pauline Atkinson
Posts: 6
Joined: Fri Nov 19, 2010 4:11 pm

How do I call a script after completing a transfer?

Post by Pauline Atkinson »

I want to call a Winbatch script which will update a spreadsheet with information about the files that were just transferred.

I tried using the POST TRANSFER COMMANDS and entering
! s:\is\scripts\winbatch\scripts\test\test.exe

I do not receive an error, but the command is not being executed.
Am I using the correct format?

Thanks,
Pauline
acorcoran
Posts: 7
Joined: Tue Feb 17, 2009 10:07 pm

Post by acorcoran »

I'm having a similar issue. My ultimate goal is to append a timestamp to every file downloaded...for instance

DO000350 -> DO000350_yyyymmdd_hhmmss.dat

However, I can't use the autorename, at least I do not believe so, because the file I am downloading does NOT have an extension. SO trying to figure out the post transfer command. It appears in the log, but doesn't actually appear to be working.

cmd.exe /c move d:\temp\DO000350 d:\temp\test.dat
Transfer time: 00:00:01
ForumAdmin
Site Admin
Posts: 1006
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

I'm not sure if the '!' was intentional, but that shouldn't be there.


for the other one

cmd.exe /c move %1 d:\test\temp.dat should work.... If you've renamed the file, you might have to do the rename after the move.
acorcoran
Posts: 7
Joined: Tue Feb 17, 2009 10:07 pm

Post by acorcoran »

After I moved the command to the external section, it seems to be working. Not sure why the script section didn't function properly.
Pauline Atkinson
Posts: 6
Joined: Fri Nov 19, 2010 4:11 pm

Post by Pauline Atkinson »

I removed the ! from the front of the command and it still was not executed.

I am using CoreFTP LE
Post Reply