vendredi 22 octobre 2021

Cmd script using If Exists with a file version

Hope you can help and if this is actually possible with a cmd script.... I have 3 different versions of a software with 3 different uninstall strings. Is it possible I can use a script to recognise the 3 different .exe versions to differentiate them? For example: If exists "c:\Program Files\xxxxxxx\xxxxxx.exe" and version equals "6.xxx.xx" GOTO Uninstall V6 If exists "c:\Program Files\xxxxxxx\xxxxxx.exe" and version equals "7.xxx.xx" GOTO Uninstall V7 If exists "c:\Program Files\xxxxxxx\xxxxxx.exe" and version equals "8.xxx.xx" GOTO Uninstall V8

If not then I will split the collections into the versions but thought maybe this would be easier if it was possible. Hope you can help and thanks in advance Br Dan

Aucun commentaire:

Enregistrer un commentaire