Whats a command to put in a batch file that when exit is pressed it..................

jonny321321

Banned
Whats a command to put in a batch file that when exit is pressed it either wont do anything or it will minimze itself it would be something like

@echo off
if exit /m


then i dont know what else or if thats wrong please another solution!!

Thank you!!
 

My Computer

System One

  • Manufacturer/Model
    Custom Built
    CPU
    Intel Pentium Dual Core E5200 Overclocked @ 2.90
    Motherboard
    ASUStek
    Memory
    OCZ DDR2 PC2-6400 Vista Performance Gold 4GB Dual Channel
    Graphics Card(s)
    ASUStek ENGTX275 PCI-E x 1
    Monitor(s) Displays
    19inch benq
    Screen Resolution
    1400x900
    Hard Drives
    400 gb
    PSU
    700 Watt artic power
    Cooling
    Artic cooler
    Internet Speed
    4.70 mb/s download, 0.37 mb/s upload
Re: Whats a command to put in a batch file that when exit is pressed it..............

i want a command line that i can use in a batch file that if the big red X at the top right of the screen is pressed it does not do anything or it minimises itself!
 

My Computer

System One

  • Manufacturer/Model
    Custom Built
    CPU
    Intel Pentium Dual Core E5200 Overclocked @ 2.90
    Motherboard
    ASUStek
    Memory
    OCZ DDR2 PC2-6400 Vista Performance Gold 4GB Dual Channel
    Graphics Card(s)
    ASUStek ENGTX275 PCI-E x 1
    Monitor(s) Displays
    19inch benq
    Screen Resolution
    1400x900
    Hard Drives
    400 gb
    PSU
    700 Watt artic power
    Cooling
    Artic cooler
    Internet Speed
    4.70 mb/s download, 0.37 mb/s upload
Re: Whats a command to put in a batch file that when exit is pressed it..............

i want a command line that i can use in a batch file that if the big red X at the top right of the screen is pressed it does not do anything or it minimises itself!

That function cannot be performed from within batch files.

When a program window is closed, the application receives the WM_CLOSE_QUERY message, and must then determine an appropriate response. This is normally used by programs to provide "This document has not been saved, do you want to save it now" feedback, but it is possible for a programmer to write code that instead minimizes the window instead. If the application does not modify the parameters of this message, then the default response would be the WM_CLOSE message, which would close the window.

The Command Window (as are most other applications windows) is programmed to follow standard rules and to close when the red X is clicked.

Unless you are willing to hack (or totally re-write) the CMD.EXE program, that behaviour cannot be altered.
 

My Computer

System One

  • Manufacturer/Model
    Custom Build
    CPU
    AMD Phenom 9600 Quad
    Motherboard
    ASUS MB-M3A32-MVP Deluxe/WiFi
    Memory
    2 x A-Data 2GB DDR2-800
    Graphics Card(s)
    ASUS ATI Radeon HD 2400PRO
    Monitor(s) Displays
    SAHARA 21"
    Screen Resolution
    1600x1200
    Hard Drives
    2 x 80GB Seagate (I)
    2 x 120GB Seagate (I/S)
    2 x 200GB Seagate (I/S)
    2 x 250GB Seagate (I/S)
    PSU
    800W
    Case
    Thermaltake Tai-Chi
    Cooling
    Tai-Chi Water Cooler
    Keyboard
    Genius
    Mouse
    Logitech
    Internet Speed
    384kbps
    Other Info
    Currently dual booting between Vista x64 Ultimate Windows 7 BETA x64
Kk thank you very much any alternatives?

from a yahoo answer someone wrote this


:: Insert delay of 10=11-1 seconds
ping -n 11 127.0.0.1 >NUL

:: Insert delay of an hour=3601-1 seconds
ping -n 3601 127.0.0.1 >NUL

Could i use it?

lol i added ur rep :D

Is anyone going to answer :D?

i see u edited my posts :D to make them into one :)

ANYONE STILL THERE?
HELOO?????????????? :(
 
Last edited:

My Computer

System One

  • Manufacturer/Model
    Custom Built
    CPU
    Intel Pentium Dual Core E5200 Overclocked @ 2.90
    Motherboard
    ASUStek
    Memory
    OCZ DDR2 PC2-6400 Vista Performance Gold 4GB Dual Channel
    Graphics Card(s)
    ASUStek ENGTX275 PCI-E x 1
    Monitor(s) Displays
    19inch benq
    Screen Resolution
    1400x900
    Hard Drives
    400 gb
    PSU
    700 Watt artic power
    Cooling
    Artic cooler
    Internet Speed
    4.70 mb/s download, 0.37 mb/s upload
Re: Whats a command to put in a batch file that when exit is pressed it..............

Kk thank you very much any alternatives?

from a yahoo answer someone wrote this


:: Insert delay of 10=11-1 seconds
ping -n 11 127.0.0.1 >NUL

:: Insert delay of an hour=3601-1 seconds
ping -n 3601 127.0.0.1 >NUL

Could i use it?

lol i added ur rep :D

Is anyone going to answer :D?

i see u edited my posts :D to make them into one :)

ANYONE STILL THERE?
HELOO?????????????? :(

I don't see how using PING and redirecting the output to the NUL device will help to alter the behaviour of clicking the Red X...
 

My Computer

System One

  • Manufacturer/Model
    Custom Build
    CPU
    AMD Phenom 9600 Quad
    Motherboard
    ASUS MB-M3A32-MVP Deluxe/WiFi
    Memory
    2 x A-Data 2GB DDR2-800
    Graphics Card(s)
    ASUS ATI Radeon HD 2400PRO
    Monitor(s) Displays
    SAHARA 21"
    Screen Resolution
    1600x1200
    Hard Drives
    2 x 80GB Seagate (I)
    2 x 120GB Seagate (I/S)
    2 x 200GB Seagate (I/S)
    2 x 250GB Seagate (I/S)
    PSU
    800W
    Case
    Thermaltake Tai-Chi
    Cooling
    Tai-Chi Water Cooler
    Keyboard
    Genius
    Mouse
    Logitech
    Internet Speed
    384kbps
    Other Info
    Currently dual booting between Vista x64 Ultimate Windows 7 BETA x64
Re: Whats a command to put in a batch file that when exit is pressed it..............

What you might also want to try is the Windows PowerShell 2.0 scripting language. It is available for download from Microsoft for Vista and Windows XP, and is included as standard with Windows 7.
PowerShell is far more advanced than simple Batch File scripting...
 

My Computer

System One

  • Manufacturer/Model
    Custom Build
    CPU
    AMD Phenom 9600 Quad
    Motherboard
    ASUS MB-M3A32-MVP Deluxe/WiFi
    Memory
    2 x A-Data 2GB DDR2-800
    Graphics Card(s)
    ASUS ATI Radeon HD 2400PRO
    Monitor(s) Displays
    SAHARA 21"
    Screen Resolution
    1600x1200
    Hard Drives
    2 x 80GB Seagate (I)
    2 x 120GB Seagate (I/S)
    2 x 200GB Seagate (I/S)
    2 x 250GB Seagate (I/S)
    PSU
    800W
    Case
    Thermaltake Tai-Chi
    Cooling
    Tai-Chi Water Cooler
    Keyboard
    Genius
    Mouse
    Logitech
    Internet Speed
    384kbps
    Other Info
    Currently dual booting between Vista x64 Ultimate Windows 7 BETA x64
Back
Top