As I have mentioned before on this forum, I have poor eyesight and depend on the Windows "Magnify" application to see what I am doing. Because of this, I have a .btm file to start the "magnify" program and then "up" its priority (it is often essentially useless when run at its "normal" priority). Contents of said .btm file (modified slightly to turn echo ON and run from my Z: drive) are below:
The output that is then displayed is:
As might be able to see from the above, the batch file "hangs" at the "Exit" command when run.
So replacing the "Exit" command by a "Quit" command, the batch file runs normally and then quits, leaving the "Started" command window still open (which I obviously don't want). Typing the "Exit" command in that command window then causes that command window to "hang" without actually exiting, just to be clear about it. What is going on here?
And, as it says above, TCC 12.10.66 Windows 7 [Version 6.1.7601]
Code:
@Echo On
Iff "%1" == "" Then
Start /Elevated /B /LA /LD /LF /LH /PGM Z:\DoMagnify.btm Elevated
Quit 0
EndIff
Iff %@PID[Magnify.exe] == 0 Then
C:\Windows\System32\Magnify.exe
Delay 1
EndIff
Do While %@PID[Magnify.exe] == 0
Delay 1
EndDo
PRIORITY %@PID[Magnify.exe] ABOVE
Exit 0
Code:
ISO8601 plugin v1.1.1 loaded.
SafeChars plugin v1.4.0 loaded.
TCC 12.10.66 Windows 7 [Version 6.1.7601]
Copyright 2011 Rex Conn & JP Software Inc. All Rights Reserved
Registered to Daniel Mathews
Iff "%1" == "" Then
Iff %@PID[Magnify.exe] == 0 Then
Do While %@PID[Magnify.exe] == 0
PRIORITY 5232 ABOVE
Exit 0
So replacing the "Exit" command by a "Quit" command, the batch file runs normally and then quits, leaving the "Started" command window still open (which I obviously don't want). Typing the "Exit" command in that command window then causes that command window to "hang" without actually exiting, just to be clear about it. What is going on here?
And, as it says above, TCC 12.10.66 Windows 7 [Version 6.1.7601]