HomeForum
Welcome, Guest

How to rename a file after processing
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How to rename a file after processing

How to rename a file after processing 2 years, 11 months ago #658

  • Frank
  • OFFLINE
  • Junior Boarder
  • Posts: 29
  • Karma: 0
I rec reeive a file each day as an e-mail attachment. The attachment is not consitantly named, although it always ends with .txt. I am currently using a mask to select the file for transformation (using *.txt as mask when looking for file).

After I complete the transformation and write the file to the db, I would like to rename the file from *.txt to DATE.done

How do I do this?

Thanks

Frank

Re:How to rename a file after processing 2 years, 11 months ago #659

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2191
  • Karma: 12
Brilliant question

Well it is not strait forward but it is possible

Use file operation action
set operation type to merge file
set source files to whatever the path is + mask
set target file to path\Data{GetSystemDate('YYYYMMDD')}.txt

As long as you got only one file matching mask in the directory it should work

Peter
  • Page:
  • 1
Time to create page: 0.15 seconds

Testimonials

Currently we are using Visual Importer Ent to import our client’s customer RMA data into our SQL server for further processing and export same data to their ftp server.

We Process 3000 files daily, 24h x 365d

C Gandhi
Nesa-Canada

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top