PC Review


Reply
Thread Tools Rate Thread

How do I DETERMINE and then RENAME a file (see example)?

 
 
Jeff
Guest
Posts: n/a
 
      10th Nov 2003
=====
ISSUE
=====
How do I rename a file whose original name changes?

=======
EXAMPLE
=======
Filename today : a1.xls
Filename tomorrow : a2.xls
Etc...

I ALWAYS WANT TO RENAME THIS FILE TO authorize.xls


Note: The "a" and ".xls" parts of the original filenames never
change (only the numeric part changes).



==========
BACKGROUND
==========
O/S = Win2000 Pro
Patches Installed

Software = Access 2000 (SP3)
Patches Installed



=========
Thanks!!!
THE END
=========
 
Reply With Quote
 
 
 
 
Dev Ashish
Guest
Posts: n/a
 
      10th Nov 2003
(E-Mail Removed) (Jeff) wrote in
news:(E-Mail Removed):

>
> Note: The "a" and ".xls" parts of the original filenames never
> change (only the numeric part changes).


Assuming you are looking for the most recent file if the process is run
daily, maybe you can loop through the folder looking for a*.xls files and
take the most recent? (FileDateTime function).

-- Dev
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Batch file to rename file based on file size Brandon Windows XP General 14 9th Aug 2008 12:25 AM
How to find a part number in a file and rename the file with the partnumber? dan dungan Microsoft Access External Data 12 9th Jun 2008 08:20 PM
Rename errorin Vista - multiple file rename James136 Windows Vista File Management 3 4th Apr 2008 11:01 AM
auto rename file when dragging to folder with a file of same name? insert your name here Windows XP Basics 1 7th Apr 2006 05:40 AM
Re: Unabl to rename a file. get error messag "you must type a file na [MVP] S.Clark Microsoft Access 0 2nd Sep 2004 04:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:07 PM.