Hi i am not a programmer but this site has been very helpful to me.
I need to rename a file that is created by a process called end of day.
The file is as follows after creation
LOA070402.zip
where 07-year, 04-month, 02- date.
So the date flag changes by each day...
The file should then be renamed to
POSSLSTRS_70_7030_070402082535.zip
again there is the date flag that is picked from the previous file name. The problem with picking the date flag from the system is that the end of day process could take long and jump to the next day, hence the filename would be wrong. The 082535 is just a counter but does not change.
I need a vb script that will do this so that i can automate the renaming process.
I tried using a batch file as follows;
ren "C:\LOA??????.zip" POSSLSTRS_70_7030_??????082535.zip
but it does not work.
Any help would be greatly appreciated!
I need to rename a file that is created by a process called end of day.
The file is as follows after creation
LOA070402.zip
where 07-year, 04-month, 02- date.
So the date flag changes by each day...
The file should then be renamed to
POSSLSTRS_70_7030_070402082535.zip
again there is the date flag that is picked from the previous file name. The problem with picking the date flag from the system is that the end of day process could take long and jump to the next day, hence the filename would be wrong. The 082535 is just a counter but does not change.
I need a vb script that will do this so that i can automate the renaming process.
I tried using a batch file as follows;
ren "C:\LOA??????.zip" POSSLSTRS_70_7030_??????082535.zip
but it does not work.
Any help would be greatly appreciated!