Download and Rename Automatically

jbreng

2008-06-18 13:54:45

I want to set a schedule to download 1 file every morning to a network directory.
The file needs to be renamed and replace the existing file.

How can I acheive this?

mb

2008-06-18 14:00:32

Hello ..

Can you elaborate what you are trying to do? What file needs to be renamed? The one on the local folder?

Regards,
Mat

jbreng

2008-06-18 14:24:35

Hello ..

Can you elaborate what you are trying to do? What file needs to be renamed? The one on the local folder?

Regards,
Mat

Yes. I am downloading a text file, let's call it w20080618.txt... When I download it to the local side I want it renamed to DailyFile.txt. There will already be another file with the same name in that folder, so i need to replace it with the newer version.

Also, i would all of this to be done unattended at a specific time in the morning.

And if it can have my coffee waiting for me on my desk when I get in, that would be a bonus...

Hope this helps..

Thanks for your help..

mb

2008-06-18 14:29:58

Hello ..

Here is the solution:
1. Stop the transfer queue
2. Drag&Drop the w20008xxx.txt file to the local folder
3. The item is being added to the transfer queue
4. Right-click on the newly created item in the transfer queue and select Properties from the context menu
5. Change the desteination path to ..../DailyFile.txt
6. Click OK to save this change
7. Right-click on the same item again and select "Schedule" from the context menu
8. In the Schedule dialog set the Recurrence Interval to 1 day.
9. Click OK to save
10. Start the Transfer Queue

Regards,
Mat

jbreng

2008-06-18 14:35:44

Hello ..

Here is the solution:
1. Stop the transfer queue
2. Drag&Drop the w20008xxx.txt file to the local folder
3. The item is being added to the transfer queue
4. Right-click on the newly created item in the transfer queue and select Properties from the context menu
5. Change the desteination path to ..../DailyFile.txt
6. Click OK to save this change
7. Right-click on the same item again and select "Schedule" from the context menu
8. In the Schedule dialog set the Recurrence Interval to 1 day.
9. Click OK to save
10. Start the Transfer Queue

Regards,
Mat

THANKS MAT !

jbreng

2008-06-18 14:43:31

THANKS MAT !

Does not seem to like this operation...
Here is what I get when I try that...

[10:39:52] Resolving host name "ce.wachovia.com"
[10:39:53] Connecting to 161.231.1.121 Port: 10021
[10:39:53] Connected to ce.wachovia.com.
[10:39:53] 220 <<<Connect:Enterprise UNIX 2.4.02 Secure FTP>>> at dmzcqaps04 FTP server ready. Time = 10:41:27
[10:39:53] AUTH TLS
[10:39:53] 234 AUTH TLS-C/TLS OK.
[10:39:53] Connected. Exchanging encryption keys...
[10:39:53] Session Cipher: 168 bit 3DES
[10:39:53] TLS encrypted session established.
[10:39:53] PBSZ 0
[10:39:53] 200 PBSZ 0 OK.
[10:39:53] USER 239865
[10:39:54] 331 Password required for 239865.
[10:39:54] PASS (hidden)
[10:39:54] 230 Connect:Enterprise UNIX login ok, access restrictions apply.
[10:39:54] SYST
[10:39:54] 215 UNKNOWN Type: L8
[10:39:54] FEAT
[10:39:54] 500 'FEAT': command not understood.
[10:39:54] TYPE I
[10:39:54] 200 Type set to I.
[10:39:54] REST 0
[10:39:54] 550 Operation is not supported under Connect:Enterprise FTP server.
[10:39:54] PWD
[10:39:54] 257 "/239865" is current directory.
[10:39:54] SIZE wscbd.trade_detail162.txt
[10:39:54] 550 Operation is not supported under Connect:Enterprise FTP server.
[10:39:54] File exist check failed. File not found or permission denied.
[10:39:54] PROT P
[10:39:54] 200 PROT P OK, data channel will be secured.
[10:39:54] PASV
[10:39:54] 227 Entering Passive Mode (161,231,1,121,228,74)
[10:39:54] Opening data connection to 161.231.1.121 Port: 58442
[10:39:54] RETR wscbd.trade_detail162.txt
[10:39:54] Connected. Exchanging encryption keys...
[10:39:54] 550 *** ERROR *** NO BATCHES FOR TRANSMISSION
[10:39:54] 0 bytes transferred. (0 bytes/s) (15 ms)
[10:39:54] MDTM wscbd.trade_detail162.txt
[10:39:54] 550 Operation is not supported under Connect:Enterprise FTP server.
[10:39:54] STAT wscbd.trade_detail162.txt
[10:39:54] 550 Operation is not supported under Connect:Enterprise FTP server.
[10:39:54] Obtaining file information (size/date) from directory listing.
[10:39:54] Ignoring LIST options.
[10:39:54] TYPE A
[10:39:54] 200 Type set to A.
[10:39:54] PASV
[10:39:54] 227 Entering Passive Mode (161,231,1,121,228,78)
[10:39:54] Opening data connection to 161.231.1.121 Port: 58446
[10:39:54] LIST
[10:39:54] Connected. Exchanging encryption keys...
[10:39:54] 150 Opening ASCII mode data connection for .
[10:39:54] Session Cipher: 168 bit 3DES
[10:39:54] TLS encrypted session established.
[10:39:54] 450 bytes transferred. (4.72 KB/s) (93 ms)
[10:39:55] 226 Transfer complete.

mb

2008-06-18 14:44:41

Oh you have to add SmartFTP to the Windows Scheduler if you want to start it automatically when Windows starts.

jbreng

2008-06-18 14:46:08

Oh you have to add SmartFTP to the Windows Scheduler if you want to start it automatically when Windows starts.

Ok.. This is just when I try to download to the network directory and rename it. Did not try a schedule yet...

mb

2008-06-18 14:54:27

I posted my last reply before I saw your log.

In the log you can see that there is a server problem:
[10:39:54] 550 *** ERROR *** NO BATCHES FOR TRANSMISSION

Please contact the administrator of the server and ask them why you get this error.

Regards,
Mat