H e l p   o n   g R u n . e x e ,   v 1 . 5 : 
 
 
 
 C o p y r i g h t ( c )   2 0 1 8   A l e x e y   K u r y a k i n   R U   k o u r i a k i n e @ m a i l . r u . 
 
 g R u n   -   W i n 3 2   u t i l i t y   t o   r u n   p r o g r a m   i n   s p e c i f i e d   d i s p l a y 
 
               m o d e   ( h i d d e n , n o r m a l , m i n i m i z e d , m a x i m i z e d ; n o / w a i t ) . 
 
               I t   w o r k s   l i k e   a n a l o g   o f   L i n u x   G T K   u t i l i t y   g R u n . 
 
 U s e   t h i s   p r o g r a m   f r e e   u n d e r   t h e   t e r m s   o f   L G P L   l i c e n s e . 
 
 
 
 U s a g e :   g r u n   [ - o p t ]   c m d l i n e 
 
 
 
 O p t i o n s   ( s t a r t e d   f r o m   -   c h a r ) : 
 
   - v     -   v e r b o s e   m o d e :   M e s s a g e B o x   o n   e r r o r s   ( d e f a u l t   i s   s i l e n t ) 
 
               i t ' s   b e t t e r   t o   p l a c e   t h i s   o p t i o n   a s   1 s t   o p t i o n   i n   l i s t 
 
   - w     -   w a i t   w h i l e   c m d l i n e   r u n n i n g ,   d e f a u l t   i s   n o   w a i t s 
 
               i n   w a i t   m o d e   g R u n   r e t u r n   c m d l i n e ' s   e x i t   c o d e 
 
   - h     -   r u n   c m d l i n e   i n   h i d d e n   w i n d o w   ( S W _ H I D E ) ,   d e f a u l t   i s   v i s i b l e   ( S W _ S H O W ) 
 
   - 0 . . 9   r u n   w i t h   d i s p l a y   m o d e   a s s i g n e d   t o   0 = S W _ H I D E ( l i k e   - h ) ,   1 = S W _ S H O W N O R M A L , 
 
               2 = S W _ S H O W M I N I M I Z E D ,   3 = S W _ S H O W M A X I M I Z E D ,   4 = S W _ S H O W N O A C T I V A T E , 
 
               5 = S W _ S H O W ( d e f a u l t ) ,   6 = S W _ M I N I M I Z E ,   7 = S W _ S H O W M I N N O A C T I V E , 
 
               8 = S W _ S H O W N A ,   9 = S W _ R E S T O R E 
 
   - i     -   r u n   w i t h   I D L E _ P R I O R I T Y _ C L A S S                   (   4     ) 
 
   - b     -   r u n   w i t h   B E L O W _ N O R M A L _ P R I O R I T Y _ C L A S S   (   6     ) 
 
   - n     -   r u n   w i t h   N O R M A L _ P R I O R I T Y _ C L A S S               (   8     ) 
 
   - a     -   r u n   w i t h   A B O V E _ N O R M A L _ P R I O R I T Y _ C L A S S   (   1 0   ) 
 
   - g     -   r u n   w i t h   H I G H _ P R I O R I T Y _ C L A S S                   (   1 3   ) 
 
   - r     -   r u n   w i t h   R E A L T I M E _ P R I O R I T Y _ C L A S S           (   2 4   ) 
 
   - c     -   r u n   w i t h   C o m S p e c   / c   . . .   ( n o t   c o m p a t i b l e   w i t h   - k s o p m x y ) 
 
   - k     -   r u n   w i t h   C o m S p e c   / k   . . .   ( n o t   c o m p a t i b l e   w i t h   - c s o p m x y ) 
 
   - s     -   r u n   w i t h   S h e l l E x e c u t e E x ( d e f a u l t )   i n s t e a d   o f   C r e a t e P r o c e s s 
 
   - o     -   r u n   w i t h   S h e l l E x e c u t e E x ( o p e n )   i n s t e a d   o f   C r e a t e P r o c e s s 
 
   - p     -   r u n   w i t h   S h e l l E x e c u t e E x ( p r i n t )   i n s t e a d   o f   C r e a t e P r o c e s s 
 
   - m     -   r u n   w i t h   S h e l l E x e c u t e E x ( e d i t )   i n s t e a d   o f   C r e a t e P r o c e s s 
 
   - x     -   r u n   w i t h   S h e l l E x e c u t e E x ( e x p l o r e )   i n s t e a d   o f   C r e a t e P r o c e s s 
 
   - y     -   r u n   w i t h   S h e l l E x e c u t e E x ( p r o p e r t i e s )   i n s t e a d   o f   C r e a t e P r o c e s s 
 
   - e     -   r u n   w i t h   E L E V A T E D   ( A D M I N )   r i g h t s   v i a   S h e l l E x e c u t e E x ( r u n a s ) 
 
   - ?     -   r u n   t h i s   h e l p   s c r e e n 
 
 
 
 E x i t   c o d e   r e t u r n e d   b y   g R u n : 
 
   0       -   O K ,   c m d l i n e   w a s   s u c c e s s f u l l y   s t a r t e d 
 
   1       -   i n v a l i d   o p t i o n s   s p e c i f i e d   ( u n s u p p o r t e d   o p t ) 
 
   2       -   n o   a r g u m e n t s   s p e c i f i e d   ( e m p t y   c o m m a n d   l i n e ) 
 
   3       -   c o u l d   n o t   c r e a t e   p r o c e s s   ( i n v a l i d   c m d l i n e   o r   a c c e s s ) 
 
   4       -   e x c e p t i o n   h a p p e n e d   d u r i n g   e x e c u t i o n 
 
   n       -   i n   w a i t   m o d e   ( - w )   g R u n   r e t u r n   c m d l i n e ' s   e x i t   c o d e 
 
 
 
 E x a m p l e s : 
 
   g r u n   f i r e f o x . e x e   -   r u n   F i r e f o x   i n   d e f a u l t   m o d e ,   n o   w a i t 
 
   g r u n   - c w h   m y p r o g   -   r u n   m y p r o g   i n   h i d d e n   C M D   c o n s o l e ,   w a i t 
 
   g r u n   - b   c a l c           -   r u n   c a l c u l a t o r   w i t h   l o w   p r i o r i t y ,   n o   w a i t 
 
   g r u n   - v w   n o t e p a d   -   r u n   n o t e p a d   i n   n o r m a l   m o d e ,   v e r b o s e ,   w a i t 
 
   g r u n   - w 7   m y p r o g     -   r u n   m y p r o g   i n   m i n i m i z e d   n o a c t i v e   m o d e ,   w a i t 
 
   g r u n   - h w   m y p r o g     -   r u n   m y p r o g   i n   h i d d e n   m o d e ,   w a i t 
 
   g r u n   - e 7   m y p r o g     -   r u n   m y p r o g   E L E V A T E D ,   m i n i m i z e d   n o a c t i v e   m o d e 
 
   g r u n   - o   h e l p . h t m   -   o p e n   d o c u m e n t   h e l p . h t m 
 
   g r u n   - m   h e l p . t x t   -   e d i t   d o c u m e n t   h e l p . t x t 
 
 