cancel
Showing results for 
Search instead for 
Did you mean: 

Re:Directory

Former Member
0 Kudos

Hi,

I created directory using the concept in the BLS , i want to copy some files into that directory with in the same program, without using the zip file, can any one help me regarding this.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Krishna,

First copy files in one folder and than give this folder path to directory.

Now apply logical action blocks after this for filter or other logic.

if you want something else than explain bit more

Best Regards

Ramshanker Upadhyay

Former Member
0 Kudos

Hi Ram,

Thanks for reply, but what u said is similar to zipfile, in which we zip some files and giving it to the directory. But what i want is , suppose i have one folder which contains say 10 files, and i want to copy all these files without zipping into the directory i have created, is this possible or not, can u reply please

Thanks & Regards,

ukchaitanya

Former Member
0 Kudos

Hi Krishna,

Use this approach.

1. Use the get file list action. Configure the folder which you want to copy.

2. Add create directory and specify the new directory path.

3. Add the repeater.( source for the repeater is output from getfile list action)

4. Check the extension for mat of the file. and get the content from that file.

Example,

If you are using a xml file, Check .xml and use xml loader

5. Add write file action.

Link text - xmlcontent of xml loader.

Path - create directory path & Name of the file from Repeater.

Execute the transaction..

Hope this solves your problem

Regards,

Kishore kumar P.S.

Former Member
0 Kudos

Hi Kishore,

I tried the way u told but still i am facing problems with this program, is there any other way to do ..

Thanks & Regards,

chaitanya

Former Member
0 Kudos

Hi krishna,

In the Mask use * . Don't check for extension. load all the files with the help of xml loader and save this.

It works fine for .xml, .txt and .doc. Do you have any other extensions files there?

Specify the problem you are facing. It helps us to help you.

Regards,

Kishore

Former Member
0 Kudos

Hi Kishore,

I did the program as u said but at step 4 when i am giving source url in the xml loader it is showing the following error:

could not load the XML document.

Error: Unable to complete requested action on XML document.Content is not allowed in prolog.

can u pls check the error and give solution .

Thanks and Regards,

chaitanya

Former Member
0 Kudos

Hi krishna,

May I know the type of file are you trying to copy?

Regarding error:

When the error is shown? While running the transaction or in the link editor itself?

From where the source url is linked to the xml loader. It should be from the repeater action.

Regards,

Kishore.

Former Member
0 Kudos

Hi Kishore,

I am copying xml files only, and i am getting errors while i am giving the source url in the xmlloader and running the transaction. I am giving the same folder given in the GetFileList option

Thanks & Regards,

chaitanya

Former Member
0 Kudos

Hi krishna,

<u>To check the xml file:</u>

Try to open the xml file with IE. If it opens, There is no problem with your xml.

For any other problem:

In repeater - use this line.

GetFileList_0.FileList{/Rowsets/Rowset/Row}

In xml loader action:

Link source URL with Repeater_0.Output{/Row/FullPath}.

Check the steps are followed correctly.

If still error occurs, explain the steps you have done.

Regards,

Kishore

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Krishna,

U can copy files from one location to the other using FTP Get file Option in BLT.

In case u want to copy the files with out a FTP server in the scene, then I'm afraid whether that can be done.

There is an action block "Get FileList" that returns the list of files in a specified location as a xml file...This xml has the entire path and name of the files in the location...

May be we have to design a work around...

Let me know your thoughts...

Thanks,

Ajitha

Former Member
0 Kudos

Hi Chaitanya,

I think u can copy the files without zipping them also..

Try this way:

Use the GetFile_List action block & point a repeater at the getfilelist output & in the next sequence give the name of the directory in which u wud like to save the files.

Let me know if this works...

Thanks,

Sushma.

Pls. award points if my answer was useful.

Former Member
0 Kudos

Hi Sushma,

I have a getfileList Action block, a repeater and what is the third action block for saving the files...???

Thanks,

Ajitha