New
#1
UAC - Batch Files just Blink (Do Nothing) when Run-as-Administrator
If the following is true:
1. A batch file resides in a path that is unprotected by windows like C:\Temp or D:\Anything, and,
2. any of the folders in the path, or the name of the batch file, contain the "(" opening parenthesis, and,
3. the batch file is run by clicking/selecting Run-as-Administrator.
The batch file will blink and process no commands, no matter what commands are in the batch file.
Also Note:
1. If a batch file resides in any path that is protected by windows like C:\Program Files (X86).
The batch file will always operate correctly however it's run, even if the batch file is named Test(.bat.
Notice here that the path "C:\Program Files (X86)" as well as the batch file name "Test(.bat" both contain the "(" opening parenthesis character, yet all works fine so long as it's in a windows protected path.
Does anyone know why this behavior is so?
The answer could provide crucial information needed to solve a much more difficult UAC elevation issue that I am having.
Also, for all those folks on forums that have wondered why their elevated batch files just blink at them. Here is an answer.
Check for those oddball path/file names with characters other than the hyphen, underscore, numbers and letters.
I know the "(" opening parenthesis character does its dirty work but I have not tried any other characters.
In researching this issue I did see another post sighting the same issue when the path contained an @ character and a space character anywhere in the path.