Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Credits 906 Posts 346 Joined 2006-07-10 09:58 20-year member UID 58334 Gender Male
Status Offline
For example, if I want to open the C drive, this is how I write it
----------------------------
CMDOW.EXE @ /HID
start c:\
----------------------------
It can be opened. But there is still a batch processing window. How to use it to hide the batch processing running window
CMDOW.EXE @ /HID
start "" /b c:\
Credits 11,386 Posts 4,938 Joined 2006-07-23 17:10 20-year member UID 59080
Status Offline
When running, a CMD window will flash but then hide immediately.
The premise of running cmdow is to open a cmd window and then have cmd interpret and execute it, so there will be a flash of a cmd window when running.
If you don't want to display the window it runs, you can search for solutions with VBS.
Credits 301 Posts 135 Joined 2007-05-15 16:49 19-year member UID 88615 Gender Male
Status Offline
Moderator lxmxn, could you please explain the usage of CMDOW.EXE? I downloaded it, but the help is in English, and my English is a bit poor, so I can't understand it. Could you please give a few examples?
Credits 11,386 Posts 4,938 Joined 2006-07-23 17:10 20-year member UID 59080
Status Offline
The help of cmdow is in English, but it is relatively easy to understand. If you don't understand, look it up in the dictionary and try more parameter usages. I think it is not difficult to master.
window List specified window (if omitted, all windows are listed).
window List the specified window (if omitted, all windows will be listed)
/T List windows only shown on the taskbar.
/T List only the windows shown on the taskbar
/B List windows using bare format (no heading information).
/B List windows in bare format (no header information)
/F List windows showing full information (don't truncate any fields).
/F List windows with full information (don't truncate any fields)
/P List windows showing position and size (left, top, width and height).
/P List windows showing position and size information (distance from the left/top of the screen, width and length)
/TH Tile windows horizontally. /TV Tile windows vertically.
/TH Tile windows horizontally. /TV Tile windows vertically
/MA Minimize all windows. /CW Cascade windows.
/MA Minimize all windows. /CW Cascade all windows
/UW Undo tile/minimize/cascade. /AT Intelligent -
/UW Undo tile/minimize/cascade. /AT Switch windows intelligently like Alt-Tab.
/FS Switch to full screen mode. /WM Switch to window mode.
/FS Switch to full screen mode. /WM Switch to window mode.
/ACT Activate specified window. /INA Inactivate specified window.
/ACT Activate the specified window. /INA Deactivate the specified window.
/ENA Enable specified window. /DIS Disable specified window.
/ENA Enable the specified window. /DIS Disable the specified window.
/VIS Unhide specified window. /HID Hide specified window.
/VIS Unhide the specified window. /HID Hide the specified window.
/MIN Minimize specified window. /MAX Maximize specified window.
/MIN Minimize the specified window. /MAX Maximize the specified window.
/RES Restore specified window. /REN Rename specified window.
/RES Restore the specified window. /REN Rename the specified window.
/TOP Make window always on top. /NOT Make window not always on top.
/TOP Make the specified window always on top. /NOT Cancel the specified window always on top.
/MOV Move specified window. /SIZ Resize specified window.
/MOV Move the specified window. /SIZ Resize the window.
/CLS Close specified window. /END Kill process linked to window.
/CLS Close the specified window. /END End the process linked to the window.
/RUN Executes or opens specified file using associated application.
/RUN Run/open the specified file using the associated application.
state show state of window (/MIN, /MAX or /HID). Default is normal.
state Show the state of the window (/MIN, /MAX or /HID). The default is to open in normal state.
args Optional commandline arguments passed to launched application.
arg Optional command line arguments passed to the launched application.
Specify a window by its caption (case insensitive) or handle in hex format.
The At symbol '@' may be used to refer to this window. For more help on any
CMDOW /? /RUN or CMDOW /? window.
parameter use CMDOW /? <parameter>. Eg CMDOW /? /RUN or CMDOW /? window.
You can specify a window by its caption (case-insensitive) or handle in hexadecimal format.
Use the @ symbol to refer to the current window. For more help on parameters, you can use CMDOW /? <parameter> or
CMDOW /? WINDOWS.
Credits 301 Posts 135 Joined 2007-05-15 16:49 19-year member UID 88615 Gender Male
Status Offline
Originally posted by lxmxn at 2007-6-10 10:09 PM:
The help of cmdow is in English, but it is still relatively easy to understand. If you don't understand, look it up in the dictionary and try the parameter usage more, I think it is not difficult to master.
Credits 906 Posts 346 Joined 2006-07-10 09:58 20-year member UID 58334 Gender Male
Status Offline
Originally posted by lxmxn at 2007-6-8 01:41:
When running, a CMD window will flash but then hide immediately.
The premise of running CMDOW.EXE is to open a cmd window and then the cmd interprets and executes it, so a cmd window will flash when running.
If you don't want to display the running window, you can search for solutions with VBS.
You said you already have VBS. If you use VBS, why do you need this CMDOW.EXE? Isn't it redundant? Can the moderator give an example of what exactly the use of CMDOW.EXE is? I'm looking for it just to run a batch file in the background. If it can't, then it's useless!!!
Credits 118 Posts 66 Joined 2005-10-21 03:27 20-year member UID 43827
Status Offline
If the owner can't find what you want in this forum, I can only say one thing, you really let down the hard work of several moderators of this forum! You can find it by searching for hidecmd.exe!