Hi all
I'm writing a script which will be used to check a registry key named version under HKLM\Software\software-name and if the version is below a certain number, copy a file and increment the version number.
However, at the moment, HKLM\Software\software-name\version does not exist so my script keeps giving an error. Obviously it works fine if I put ON ERROR RESUME NEXT at the top of the script, but is there any other way of getting around this ?
Thanks in advance
Irish Poetry - Karen O'Connor
Irish Poetry and Short Stories - Doghouse Books
Garten und Landschaftsbau
I'm writing a script which will be used to check a registry key named version under HKLM\Software\software-name and if the version is below a certain number, copy a file and increment the version number.
However, at the moment, HKLM\Software\software-name\version does not exist so my script keeps giving an error. Obviously it works fine if I put ON ERROR RESUME NEXT at the top of the script, but is there any other way of getting around this ?
Thanks in advance
Irish Poetry - Karen O'Connor
Irish Poetry and Short Stories - Doghouse Books
Garten und Landschaftsbau