Minimize Batch File While Running?

January 21, 2011 at 19:53:01
Specs: Windows XP
Reply to an old post - the user wanted to minimize from a batch file while it was running.
I wanted my batch file to start, tell the user what it was doing, then minimize and get out of the way.
The only way I found to do this was to start the main batch file with the "Start" command.

START /MIN MyBatchfile.bat

Inside MyBatchfile.bat was a line "starting" the my message batch file that used the CHOICE command with a default choice on a 15 second delay.

START MyMessage.bat


See More: Minimize Batch File While Running?

Report •


#1
January 22, 2011 at 12:50:50
this way you will have to call the batch file from either command prompt or run.

You can write a batch file like this :.
++++++++++++++++++++++++++++++++++++

@echo off
goto end
type %0 | find " " | find /v "notme" >%temp%\Tempbatch.bat
::put all your batch code stuff here
::put all your stuff here.
::Make sure to add 8 Space before each line of code.


:End
start /MIn %temp%\Tempbatch.bat & exit
======================================

Basicly it will type itself on commnd interpritor and find all the lines with 8 spcase.
With the output it will create abother batch file and in last execute it

Subhash Chandra.
www.s-chandra.co.cc


Report •

#2
March 28, 2011 at 12:21:54
I just started them both from another batch...


SHOW.bat
------------------------------------------
START /MIN MyBatchfile.bat
START MyMessage.bat
------------------------------------------

MyBatchfile.bat
---------------------------------------------------------------------------------------------------
@echo off
title Minimized Working Program
echo - this is the minimized working file that only appears on the taskbar,
echo - unless you double click it.
echo -
echo - work work work work work work work...
choice /n /c:yn- /t:-,30 "works until it's done."
exit
--------------------------------------------------------------------------------------------------


MyMessage.bat
--------------------------------------------------------------------------------------------------
@echo off
title Thhhhhwack! Message For You Sir...
mode 65,5
color 97
echo -
echo - this is my message which stays on the screen for 15 seconds.
echo -
choice /n /c:yn- /t:-,15
exit
------------------------------------------------------------------------------------------------------


This is a nice way to go because I can change the message easily without searching the main program.


Report •

#3
March 28, 2011 at 16:11:27
I guess there are several ways to reach London from LA. It depends which one individual chooses.

Agreed what you said will work as well..

Subhash Chandra.


Report •
Related Solutions


Ask Question