I currently have 5 browsers in my Windows -- MicrosoftEdge, Internet Explorer 11, Chrome, Firefox and Opera. I am using cmd by searching the executables of these browsers to check if they are installed in the system, which I will create a batch script later on for checking purposes.
However, only 2 of the 5 browsers are found in after looking through the directories. The two ways to look for specific files/folder I tried both give the same results.
The following are the default naming convention of the browser executables:
MicrosoftEdge - MicrosoftEdge.exe
Internet Explorer 11 - iexplore.exe
Google Chrome - chrome.exe
Mozilla Firefox - firefox.exe
Opera - launcher.exe
The following are what I already tried:
dir /a /s
and
where
Example Results:
dir /a /s MicrosoftEdge.exe
Volume in drive C is Windows
Volume Serial Number is 0AAC-370F
Directory of C:\Users\User\AppData\Local\Microsoft\WindowsApps
15/10/2019 01:05 pm 0 MicrosoftEdge.exe
1 File(s) 0 bytes
Directory of C:\Users\User\AppData\Local\Microsoft\WindowsApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe
15/10/2019 01:05 pm 0 MicrosoftEdge.exe
1 File(s) 0 bytes
Total Files Listed:
2 File(s) 0 bytes
0 Dir(s) 269,413,756,928 bytes free
dir /a /s chrome.exe
Volume in drive C is Windows
Volume Serial Number is 0AAC-370F
File Not Found
where MicrosoftEdge.exe
C:\Users\User\AppData\Local\Microsoft\WindowsApps\MicrosoftEdge.exe
where chrome.exe
INFO: Could not find files for the given pattern(s).
I did the same for the rest and apart from MicrosoftEdge, only Opera can be located and the rest were unable to be found. Am I using the wrong search methods or are there any other methods that can locate all of them?