#142523 - 2005-06-28 02:42 PM
Renaming files using KIX
|
alothe
Lurker
Registered: 2005-06-28
Posts: 2
Loc: Oslo, Norway
|
Hi...
Is there anyway I can use KIX to rename a file from for example LOG to LOG-[DATE]-[TIME]?
For example by using @Date and @Time?
|
Top
|
|
|
|
#142529 - 2005-06-28 03:46 PM
Re: Renaming files using KIX
|
alothe
Lurker
Registered: 2005-06-28
Posts: 2
Loc: Oslo, Norway
|
Thanks for your help.
Im pretty new to Kix... so I have some problems fuguring out the different syntaxes. I like to think Im getting a hang of it.
I tried both your methods, and the both worked perfectly.
I then tried jamming a @TIME macro after your "@YEAR-@MonthNo-@MDayNo", so it reads "@YEAR-@MonthNo-@MDayNo-@TIME", but this creates the error message:
"A duplicate file name exists, or the file cannot be found."
I verified that the file Im trying to rename is in the dir, and that there is no file with the NEW name, but still the error occurs...
Any ideas?
I think I'll steer clear of the UDF for now... I like to understand whats going on before it gets to advanced... baby-steps, you know? :-)
and, thanks for bearing with me...
|
Top
|
|
|
|
#142535 - 2005-06-28 10:59 PM
Re: Renaming files using KIX
|
Allen
KiX Supporter
Registered: 2003-04-19
Posts: 4545
Loc: USA
|
Jooel... is this what you didn't write? or are you talking about some other UDF?
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 339 anonymous users online.
|
|
|