VBScab
Posts: 6623
Score: 190 Joined: 9/5/2006 From: London, UK Status: offline
|
Use the Split function with the full-stop (period) as the separator, then use CopyFile to copy the original to the new name, followed by file deletion of the original. Nice dodge: you can "access" the elements of the array returned by Split directly, as in:strPart1 = Split(arrFilename, ".")(0)
strPart2 = Split(arrFilename, ".")(1) and so on.
_____________________________
- Don't know why 'x' happened? Want to know why 'y' happened? ProcMon will tell you. - Try using http://www.google.com before posting. - I answer questions only via forums. PMs and personal emails will be ignored.
|