| || |
automate windows start button and all programs
I have a test that requires to automate the start-> all programs so as to make sure a specific program exists
I'm having trouble finding out how to do that on the 'net
You could use simething like:
On Error GoTo Next
If Err.Number <> 0 Then
MsgBox "Program Not Installed"
You will need to flesh the code out but the skeleton should work Ok.
It is just a file structure on the disk. I don't see a reason to test the button itself unless you work for Microsoft. Which even they would not test that since they got rid of the Start button in Windows 8.
Use a file system object to check for your program here for all users:
And here for ones just in your profile:
C:\Users\<your user name>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs