中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-05 12:29
48,038 topics / 350,123 posts / today 1 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Ask: Usage of CMDOW.EXE
Printable Version  1,958 / 10
Floor1 eech Posted 2007-06-07 20:18
高级用户 Posts 346 Credits 906
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:\
Floor2 lxmxn Posted 2007-06-08 01:41
版主 Posts 4,938 Credits 11,386
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.
Floor3 eech Posted 2007-06-08 12:53
高级用户 Posts 346 Credits 906
Then what is the use of CMDOW? It made me search for ages, so just delete it!
Floor4 lxmxn Posted 2007-06-08 13:07
版主 Posts 4,938 Credits 11,386
What you want to achieve is running in the background, and cmdow is not suitable; you used the wrong tool.

[ Last edited by lxmxn on 2007-6-8 at 01:09 PM ]
Floor5 wert123 Posted 2007-06-08 18:56
中级用户 Posts 135 Credits 301
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?
Floor6 lxmxn Posted 2007-06-10 22:09
版主 Posts 4,938 Credits 11,386
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.

I simply translated it:
CMDOW Win32 Commandline Window Utility for NT4/2000/XP.
(C) Copyright 2001-2004 Ritchie Lawrence, http://www.commandline.co.uk.

CMDOW
CMDOW /TH | /TV | /MA | /CW | /UW | /AT | /FS | /WM
CMDOW window {

}
CMDOW /RUN file

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.
Floor7 wert123 Posted 2007-06-11 11:03
中级用户 Posts 135 Credits 301
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.

I simply translated it:

Thank you so much!
Floor8 eech Posted 2007-06-12 14:42
高级用户 Posts 346 Credits 906
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!!!
Floor9 lxmxn Posted 2007-06-12 17:40
版主 Posts 4,938 Credits 11,386
I have already said that cmdow is only for window control. Using cmdow won't achieve your goal. Use VBS.

Also, just because it can't make your program run in the background doesn't mean it's useless.
Floor10 senffon Posted 2007-07-02 01:11
初级用户 Posts 66 Credits 118
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!
Floor11 mackyliu Posted 2007-07-12 16:30
初级用户 Posts 16 Credits 32
Lao Jiu's hidecmd.exe is a great thing, haha. I like it the most
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023