batch file - Run .bat script on server start up and keep console -
i can schedule .bat script executed on scheme start in windows server using scheduled tasks in command panel , specify user perform execution on behalf of.
but when script starts , runs other programs invisible me when log system. see them in task manager , there 1 user session established.
they question is, whether there way create these consoles , applications visible, can see execution process , stop if required?
as long user has administrator privileges, quite simple: there button on left bottom side of taskmanager can "show processes users"
i doing everyday...
if interested in output of stdout each program, have pipe textfile/logfile.
for creating , writing new logfile use:
program.exe > logfile.txt
for appending existing 1 use:
program.exe >> logfile.txt
use logfile roller tail (http://tailforwin32.sourceforge.net/) watch these logfiles while programs executed.
beside of that, don't think, possible ui outputs user onto screen without logging in user. if logged in on same user session, think programme uis should pop-up when script executes program.
batch-file scheduled-tasks windows-server
No comments:
Post a Comment