HomeForum
Welcome, Guest

Is it possible to rename a file using file operation and to then add System date
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Is it possible to rename a file using file operation and to then add System date

Is it possible to rename a file using file operation and to then add System date 1 year, 1 month ago #2373

  • Pieter
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Good day

Can you please tell me if it is possible to rename a file using file operation and to then add System date or file date to the name. E.g. Take a ZIP file, UnZip, Change name from detail.zip to detail 20061020.zip?

I am using Vimp Pro at the moment, if it can't be done is it planned? I currently have to use another application for this function...

Please advise

Regards

Pieter

Re: Is it possible to rename a file using file operation and to then add System date 1 year, 1 month ago #2374

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2191
  • Karma: 12
Documentation is the answer

You can use calculations in file names

Page 92

GETSYSTEMVARIABLE('SYSTEM_DATE') will return current date in ‘YYYYMMDDHHNNSS’ format

If we want only part of date we can use LeftString(String,Count):String for example

LeftString(GETSYSTEMVARIABLE('SYSTEM_DATE'),8) will return only date part.

Now more complicated example for loading yesterday’s data;

LeftString(DecDateS(GETSYSTEMVARIABLE('SYSTEM_DATE'),'YYYYMMDDHHNNSS', 'DAY',1),8)
  • Page:
  • 1
Time to create page: 0.15 seconds

Testimonials

Development team listens to it's customers and implements new features in days sometimes hours.

Paul Gibb,
MPS

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