function for rename file (1 Viewer)

shaomwang

Registered User.
Local time
Today, 18:26
Joined
Apr 22, 2000
Messages
14
Every day I need to rename one file which downloaded from mainframe and give it name as
today's day and month. For example, 0422.txt,
0423.txt, so on. How can I write a function or procedure to do it?
 

shaomwang

Registered User.
Local time
Today, 18:26
Joined
Apr 22, 2000
Messages
14
I found answer myself. You can use build in command filecopy to do it.
 

KMAN

New member
Local time
Today, 18:26
Joined
May 2, 2000
Messages
8
You could use the 'Name' function.
Name currentFilename As newFilename
 

Users who are viewing this thread

Top Bottom