|
Answer» Hi...
I'm trying to create batch job to run a COMMAD as background PROCESS.
How to do so?
And how can I grep the hostname locally into the batch FILE?
Please help...You didn't mention your OS. Your results may differ.
Try RUNNING your batch file minimized from the Task Scheduler. Not truly a background process but CLOSE enough for government work. Note: if your batch file creates a console interrupt, a window will appear.
For the Hostname, this may work:
for /f %%a in ('hostname') do echo %%a
The same info is available in the %ComputerName% environment variable.
Hope this helps.
|