renaming a file

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
icwicks
Newbie
Posts: 7
Joined: Wed Apr 23, 2003 11:28 am

renaming a file

Post by icwicks » Wed Oct 29, 2003 3:17 pm

hi

I want to rename a file to be called current_month.csv where current_month is a numerical value (e.g Jan is 1, Feb is 2 etc) Before copying it.

I have this below which does exactly that, except it names the file the whole date and i only want the month.

please help me to edit this

DeleteFile>C:\company_test\ready\*.*
FileDate>C:\company_test\export1.csv,current_date
Let>thing=%current_date%
Let>filename=%thing%.csv
CopyFile>C:\company_test\export1.csv,C:\company_test\ready\%thing%.csv

:shock: [/i]

Guest

Post by Guest » Wed Oct 29, 2003 3:31 pm

i figured it out thanks

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts