We have customized an application (Polarion ALM) by adding some CSS-code to stylesheets from the application. However, those stylesheets are located in a server-path, which is affected from updates. For this issue we have started creating a very simple Batch-file to copy lines of code to the stylesheets.
Here an example:
echo .anyclass {color:red;} >> \\serveradress\folder_3.18.0\Chrome.css
The script itself works fine - however the problem is that with every update of the application the foldername "folder_3.18.0" changes, in which the stylesheet is located, for example to "folder_3.18.1" or "folder_3.19.0" (At least only the number changes).
Is there any trick to handle in the script this dynamic number behind the "folder_"? Or any workaround? Unfortunately I have to stick to the "not-update-safe" path to locate the stylesheet.
There is a similar question in this forum, but I don't understand how to transfer it to my Use-Case - as I am totally new to Batch-Files: create batch file to copy folder contents with dynamic name