I have a software that creates a network of workstations by naming the files in a folder with the network address and workstation address, each is 2 digits. Recently we have been needing to go in and update these to a more organized format, and in order to do so, I have to go into the folder and rename the files to the network/workstation address that I want it to be and then update the .ini file with the updates addresses. There are about 10-15 files in the folder that have to be renamed, and their example formats are:
Some of the files have the network AND workstation addresses and some just have the workstation address.
What I am looking for is a command (or maybe a script is the better way?) where I can run it on a particular folder to rename all files with “0203” to “0410” and rename all files with “03” to “10” so it would be quicker. The updated files from above would then look like:
Some of the time I am having to do all this on touch screen at the station so its alot of tedious work that Im sure could be simplified. Any ideas?
Welcome back to the forum. … long time no see.
Have you at least tried once to search for a solution? What you asked for is a very common task and it has been asked a lot of times already and it has been answered a lot of times already.
This forum is for scripting questions rather than script requests. We do not write customized and ready to use scripts or solutions on request.
We actually expect you to make an own attempt at the first place to get your task done or to solve your problem. If you have done so already please document here what exactly you have done and show your code. Then we probably might be able to help you step further.
Another option besides a script would be a file rename tool. They have a GUI and most of them are able to work with regular expressions.