- Feb 15, 2014
- 103
- 58
I use a batch file to launch ITH and TA. Here's my script:
When ITH launches, UAC kicks in, I select 'Yes' then TA launches. That's all good, but the command prompt wouldn't exit. I have to manually close the window. So does anyone know what the cause is and what I can do so that the command prompt window would close after performing the commands? By the way, my PC runs on Windows 7.
And one more thing about UAC. There are occasions when it takes time for a program that requires administrative privileges to launch. For example, ITH...there are times when I start it, and it will take like a few seconds or a minute before the UAC prompt pops up. Does anyone know the reason for this?
Code:
@echo off
echo Launching ITH 3.0...
cd /d "F:\Programs EX\ITH 3.0"
start ITH.exe
echo Launching Translation Aggregator...
timeout /t 2 /nobreak > NUL
echo.
cd /d "D:\Translation Aggregator 0.4.9.r171\Translation Aggregator 0.4.9.r171"
"Translation Aggregator.exe" /b
exit
When ITH launches, UAC kicks in, I select 'Yes' then TA launches. That's all good, but the command prompt wouldn't exit. I have to manually close the window. So does anyone know what the cause is and what I can do so that the command prompt window would close after performing the commands? By the way, my PC runs on Windows 7.
And one more thing about UAC. There are occasions when it takes time for a program that requires administrative privileges to launch. For example, ITH...there are times when I start it, and it will take like a few seconds or a minute before the UAC prompt pops up. Does anyone know the reason for this?