on 03-14-2007 2:19 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.