Hi,
I have a customer who is providing me files that are name from 1-999. They are asking that the files be renamed. Files are sent to me daily, so I am looking to write a program to do the renaming.
The files would be renamed 1-99, but when it gets to 100 they want to name the file A0, and if its 101 it would be A1, and when it reaches 110, it would be B0. Basically when its a 3 digit number they want to use a 2 digit value. Alpha then numeric, so the total number of files I receive would not exceed 350. I know I could probably use a case statement, but don't want to have 26 separate cases. Is there a more efficient way to do this. Thanks
I have a customer who is providing me files that are name from 1-999. They are asking that the files be renamed. Files are sent to me daily, so I am looking to write a program to do the renaming.
The files would be renamed 1-99, but when it gets to 100 they want to name the file A0, and if its 101 it would be A1, and when it reaches 110, it would be B0. Basically when its a 3 digit number they want to use a 2 digit value. Alpha then numeric, so the total number of files I receive would not exceed 350. I know I could probably use a case statement, but don't want to have 26 separate cases. Is there a more efficient way to do this. Thanks