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.
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.
My Computer
At a glance
XP-64, 7-32, 7-64, 8.1-64 2K3-32 & 2K8R2-64AMD and Intel4GB-32 to 16GB-64All nVidia
- Computer type
- PC/Desktop
- Computer Manufacturer/Model Number
- Custom
- OS
- XP-64, 7-32, 7-64, 8.1-64 2K3-32 & 2K8R2-64
- CPU
- AMD and Intel
- Motherboard
- Gigabyte and Asus
- Memory
- 4GB-32 to 16GB-64
- Graphics Card(s)
- All nVidia
- Hard Drives
- Many 1-4 TB
- Antivirus
- Avira and Avast
- Browser
- Firefox