HI ****
please if I'm running a batch, can at a certain point minimaze the current window in witch the script are running?
thanks
+ Reply to Thread
Results 1 to 11 of 11
-
-
Hi ,
write at the first line
@echo on
instead of
@echo off
Cheers .JE SUIS CHARLIE !!! -
thank you cat but I mean to minimize the entire window that are in executing, and not the text that appear on the window
-
put START /? on your cmd line - you should receive something like bellow:
Code:C:\Users\Administrator>start /? Starts a separate window to run a specified program or command. START ["title"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED] [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL] [/NODE <NUMA node>] [/AFFINITY <hex affinity mask>] [/WAIT] [/B] [command/program] [parameters] "title" Title to display in window title bar. path Starting directory. B Start application without creating a new window. The application has ^C handling ignored. Unless the application enables ^C processing, ^Break is the only way to interrupt the application. I The new environment will be the original environment passed to the cmd.exe and not the current environment. MIN Start window minimized. MAX Start window maximized. SEPARATE Start 16-bit Windows program in separate memory space. SHARED Start 16-bit Windows program in shared memory space. LOW Start application in the IDLE priority class. NORMAL Start application in the NORMAL priority class. HIGH Start application in the HIGH priority class. REALTIME Start application in the REALTIME priority class. ABOVENORMAL Start application in the ABOVENORMAL priority class. BELOWNORMAL Start application in the BELOWNORMAL priority class. NODE Specifies the preferred Non-Uniform Memory Architecture (NUMA) node as a decimal integer. AFFINITY Specifies the processor affinity mask as a hexadecimal number. The process is restricted to running on these processors. The affinity mask is interpreted differently when /AFFINITY and /NODE are combined. Specify the affinity mask as if the NUMA node's processor mask is right shifted to begin at bit zero. The process is restricted to running on those processors in common between the specified affinity mask and the NUMA node. If no processors are in common, the process is restricted to running on the specified NUMA node. WAIT Start application and wait for it to terminate. command/program If it is an internal cmd command or a batch file then the command processor is run with the /K switch to cmd.exe. This means that the window will remain after the command has been run. If it is not an internal cmd command or batch file then it is a program and will run as either a windowed application or a console application. parameters These are the parameters passed to the command/program.
-
I mean this:
while executing a batch in normal mode, at a specific certain point I would like minimize the window that is running.
Can it be done this? -
you can add in batch START /MIN before calling your process - i don't know any way to minimize some process window during activity but i'm almost sure that you have this kind of functionality in OS Windows API (so perhaps you may have dedicated application to control different process window).
-
Make the batch in 2 parts (2 batches, 1st calls 2nd) and have the 2nd be set minimized. But you'll never be able to get the timing exact.
Scott -
@marcorocchini... if you don't mind me asking... what can you possibly be using the hundreds of specialized batch files you have asked for? And how do you keep them organized?
-
Make a little VBScript file to invoke Minimize:
Code:Dim shell Set shell = WScript.CreateObject("WScript.shell") shell.SendKeys "% n"
Code:cscript minimize.vbs //nologo
Similar Threads
-
how to let appear a small window with information in a BATCH
By marcorocchini in forum Newbie / General discussionsReplies: 14Last Post: 4th Aug 2017, 01:36 -
[BATCH PROCESSING] how to replace CHOOSE.EXE in a batch routine?
By marcorocchini in forum Newbie / General discussionsReplies: 3Last Post: 10th Nov 2015, 03:33 -
is it possible to infect from virus by executing video file?
By kenny1999 in forum Newbie / General discussionsReplies: 5Last Post: 20th Sep 2015, 17:33 -
Any program that makes the top window 'current window' esp win7?
By pcGnome in forum ComputerReplies: 6Last Post: 23rd May 2015, 17:43 -
PotPlayer window-in-window
By jaywalker32 in forum Software PlayingReplies: 1Last Post: 28th Oct 2014, 18:17