Unfortunately my VB knowledge is very minimum, but i need a script to do the following:
I have a file Licenses.txt, which contains one license per line:
License 1
License 2
License 3
I have an other file response.ini, which has a value ProductKey in this format : ProductKey=XXXXX-XXXXXX-XXXXXX-XXXX
I want to do the following:
Read from Licenses.txt the first license. If it is free (a license is free if after the license don't stay Used), then it should replace the XXXXX-XXXXXX-XXXXXX-XXXX value in response.ini and put Used after the first License, so in License.txt it should stay License 1 - Used. If i run it again, then it should use the second license and put Used after it etc. If i don't have any free License then i should get an ErrorMessage.
Hopefully you can understand what i want to do. Can someone help me?
Thanks!