I would like to capture the current active Window title in a string.
Ideally I would like to grab the current openend file and path, however since the file name appears inthe title bar I thought I could parse out the name. Ultimatrly I will locate the file and change the file to read only.
I realize this wouldn’t make sense normally because the file is currently open but I am using this technique as a sort of ‘check out/in’ system for a shared file workspace folder. The program (not a MSOffice program) does not have this capability. However if I can write the script then users can manually execute the code. Any ideas even partial is helpful? I have tried to use GetActiveWindowTitle but I must have the syntax incorrect because wscript reports a compilation error.