function for rename file

shaomwang

Registered User.
Local time
Today, 01:28
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?
 
I found answer myself. You can use build in command filecopy to do it.
 
You could use the 'Name' function.
Name currentFilename As newFilename
 

Users who are viewing this thread

Back
Top Bottom