Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Retain File name from FTP
Topic Summary:
Created On: 01/20/2012 08:16 AM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 01/20/2012 08:16 AM
User is offline View Users Profile Print this message

Author Icon
JasonCapo
Student (5-19 posts)

Posts: 16
Joined: 11/11/2011

I'm having trouble retaining the file name once the files are downloaded from FTP server to destination.

The file names are:  UNI_DDI_01_19_2012_02_00_01.TXT

However, when I do the following:

<AMFTPDOWNLOAD SOURCE="/tmp/DDI_SEND/*.*" DEST="%DEST%\*.TXT" OVERWRITE="YES" />

It only copies the the file as 00.TXT and 00_1.TXT, etc..

It over writes the files as many have the same ending.. thus instead of 30 files I only get 4.

My question is, how can I retain the file name during the above process.

Thanks,
Jason



 Category Survey
 01/20/2012 09:47 AM
User is offline View Users Profile Print this message

Author Icon
Leonard Amabile
HelpSystems

Posts: 5454
Joined: 05/15/2007

Jason,

Are you running BPA8 or BPA7? The code you provided is not from BPA8. This similar functionality does work in BPA8.




 Category Survey


-------------------------

Leonard Amabile | Director, Cross Platform Support
AutoMate | InterMapper | Skybot | Divisions of HelpSystems
T: +1.213.738.1700 | F: +1.213.738.7665
 01/20/2012 10:30 AM
User is offline View Users Profile Print this message

Author Icon
JasonCapo
Student (5-19 posts)

Posts: 16
Joined: 11/11/2011

BPA7



 Category Survey
 01/20/2012 10:52 AM
User is offline View Users Profile Print this message

Author Icon
Leonard Amabile
HelpSystems

Posts: 5454
Joined: 05/15/2007

Hi Jason,

I attempted the same scenario on our end and it completed successfully.

Original File:
UNI_DDI_01_19_2012_02_00_01.txt

New File:
UNI_DDI_01_19_2012_02_00_01.txt

What kind of FTP server are you connecting to? Do you have compatibility mode selected in your FTP Logon step? What version of BPA7 are you running and under what version of Windows?

 Category Survey



Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)


-------------------------

Leonard Amabile | Director, Cross Platform Support
AutoMate | InterMapper | Skybot | Divisions of HelpSystems
T: +1.213.738.1700 | F: +1.213.738.7665
 01/23/2012 07:42 AM
User is offline View Users Profile Print this message

Author Icon
JasonCapo
Student (5-19 posts)

Posts: 16
Joined: 11/11/2011

I'm connecting to a UNIX server.

The file names on the UNIX server are actually:

UNI_DDI_01_23_2012_02:00:00_2.TXT

When I use AutoMate to download the files and transfer them to destination it only takes the last 4 to 2 characters:  00_2.TXT

When I use FileZilla, it transfer the file no problems.  FileZilla actually takes the file name UNI_DDI_01_23_2012_02:00:00_2.TXT and changes it to UNI_DDI_01_23_2012_02_00_00_2.TXT.  I removes the 'semi-colons' and replaces them with 'under scores'.

I'm curious, if AutoMate is unable to do the same.  Also, I noticed that AutoMate shrinks the file size.  The file size on the UNIX server is 87kb, when transferred it goes down to 1kb.  Where in FileZilla, it retains the file sizes.

Just an observation.  Whatever, you can do to assist would be extremely helpful.  Thank you for your time.

(See attached for FileZilla - screenshot)



 Category Survey
 01/23/2012 08:18 AM
User is offline View Users Profile Print this message

Author Icon
JeanDelfosse
Supreme Guru (1000+)

Posts: 8883
Joined: 03/30/2005

Jason,
Two remarks come to my mind:
1- AutoMate does not handle nicely the filenames with colons ( : ), since they are not allowed in Windows
2- I suspect the files are Unicode (suggested by the UNI prefix of the filenames), and Automate version 7 cannot and will not handle Unicode files.

If you do an FTP advanced "short list" of the files in the FTP folder, do the filenames show up nicely with their colons ?
If they do, you could loop the shortlist and download the files one after the other by specifying their new name (in destination) replacing the :'s with _'s as Filezilla does
But regarding the Unicode (if any), another solution must be found, like command line ftp commands.

 Category Survey


-------------------------
Jean Delfosse - Automate Beta Tester
Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1463 guests browsing this forum, which makes a total of 1463 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog