|
Answer» I am trying to run a batch file remotely. Is there anyway to have it run without bringing up the DOS screen? I wan't users to not know it is even running.
Thanks in advance!Use a .PIF with the .BAT file. In the program information file, specify 'run minimised'.
Add the following lines to your batch file:
[glb]echo off mode CON:=nul: break=off[/glb]
(current batch file text)
[glb]break=on mode con:=con:[/glb]
These will disable echo of commands to the screen and ROUTE the program outputs to the NUL: device. Be sure to test the batch file before ADDING these lines as they disable the ability to monitor the batch file's progress or any error messages from the batch file.This still results in the MS-DOS icon appearing on the task bar for the DURATION of the DOS session... There may be something you can put in a PIF to disable the taskbar session... check the OPTIONS.
|