Here is my test bat file:
@echo off
echo\
echo "Hello David"
echo\
pause
If I run this very simple bat file in a user account or admin account, or in an elevated command window, it works fine - I see the text and the pause - no errors. But if I run the bat file as Administrator (mouse right click) or use a shortcut to the bat file that runs as administrator, the window appears and immediately disappears. I do not see the text or the pause. Why? What am I missing?
@echo off
echo\
echo "Hello David"
echo\
pause
If I run this very simple bat file in a user account or admin account, or in an elevated command window, it works fine - I see the text and the pause - no errors. But if I run the bat file as Administrator (mouse right click) or use a shortcut to the bat file that runs as administrator, the window appears and immediately disappears. I do not see the text or the pause. Why? What am I missing?
My Computer
- Computer type
- PC/Desktop
- OS
- Windows 7 Home Premium 64bit