China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

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!

中国DOS联盟论坛
The time now is 2026-08-05 11:22
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Ask: Usage of CMDOW.EXE View 1,955 Replies 10
Original Poster Posted 2007-06-07 20:18 ·  中国 安徽 芜湖 电信
高级用户
★★★
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:\
Floor 2 Posted 2007-06-08 01:41 ·  中国 湖北 武汉 电信
版主
★★★★★
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.
Floor 3 Posted 2007-06-08 12:53 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 906
Posts 346
Joined 2006-07-10 09:58
20-year member
UID 58334
Gender Male
Status Offline
Then what is the use of CMDOW? It made me search for ages, so just delete it!
Floor 4 Posted 2007-06-08 13:07 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
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 ]
Floor 5 Posted 2007-06-08 18:56 ·  中国 湖北 武汉 教育网
中级用户
★★
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?
Floor 6 Posted 2007-06-10 22:09 ·  中国 湖北 武汉 电信
版主
★★★★★
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.

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.
Floor 7 Posted 2007-06-11 11:03 ·  中国 湖北 武汉 教育网
中级用户
★★
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.

I simply translated it:

Thank you so much!
Floor 8 Posted 2007-06-12 14:42 ·  中国 安徽 芜湖 电信
高级用户
★★★
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!!!
Floor 9 Posted 2007-06-12 17:40 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
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.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
kennyfan +2 2009-02-16 00:15
Floor 10 Posted 2007-07-02 01:11 ·  中国 广东 东莞 电信
初级用户
★★
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!
Floor 11 Posted 2007-07-12 16:30 ·  中国 广东 深圳 电信
初级用户
Credits 32
Posts 16
Joined 2006-10-19 21:11
19-year member
UID 66985
Gender Male
Status Offline
Lao Jiu's hidecmd.exe is a great thing, haha. I like it the most
Forum Jump: