CUCM BAT file not running with the windows 64 bit and office 2016. Here i found the solution for that and I have tested that one. It works 100% perfectly in my laptop. which is windows 10 64bit and office 2016 64 bit one.
First You need to edit the VB script. Once you open the bat.xlt file you will get this kind of error.
Then You need to edit the VB script as bellow.Please make sure enter the correct keyword.
Instead of the highlighted text area you need to enter the PtrSafe keyword In front of the Function keyword.
Ex:- Private Declare Function lstrcat
after adding the PtrSafe key word : - Private Declare PtrSafe Function lstrcat
Please Be mindful to change the underlined keywords as follow.
shell32 should be shell32.dll
kernal32 should be kernal32.dll
You need to change all three statements as like this.
After doing all the changes please save the bat.xlt file renaming new file name.(please keep the xlt file format as it is)
Here I have attached the corrected xlt file. but it rename as .xls. Please rename it as .xlt after downloading the file.