Hi,
I'm struggling a bit with this, so any help much appreciated, as always!
Ok, I have a sequence of files with the following naming convention, stored in drive R:\
prtx010.prtx010.0539.888888.465.19222990
prtx010.prtx010.0539.111111.466.19222819
prtx010.prtx010.0539.222222.322.19222801
prtx010.prtx010.0539.123456.815.19222820
None of these files have an extension but can be renamed as .txt files and manipulated accordingly. Currently, I rename them by hand and import into access. Not a big job with two or three files, but a pain with larger numbers!
The first 21 characters are the same for every file created and do not ever change. What I want to do is rename them with characters 22 to 27 (6 digit numbers) like this:
prtx010.prtx010.0539.123456.465.19222820 becomes 123456.txt
prtx010.prtx010.0539.123456.465.19222820 becomes 111111.txt and so on until all files in the directory have been renamed.
Any ideas?
--
Steven
I'm struggling a bit with this, so any help much appreciated, as always!
Ok, I have a sequence of files with the following naming convention, stored in drive R:\
prtx010.prtx010.0539.888888.465.19222990
prtx010.prtx010.0539.111111.466.19222819
prtx010.prtx010.0539.222222.322.19222801
prtx010.prtx010.0539.123456.815.19222820
None of these files have an extension but can be renamed as .txt files and manipulated accordingly. Currently, I rename them by hand and import into access. Not a big job with two or three files, but a pain with larger numbers!
The first 21 characters are the same for every file created and do not ever change. What I want to do is rename them with characters 22 to 27 (6 digit numbers) like this:
prtx010.prtx010.0539.123456.465.19222820 becomes 123456.txt
prtx010.prtx010.0539.123456.465.19222820 becomes 111111.txt and so on until all files in the directory have been renamed.
Any ideas?
--
Steven