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-03 19:23
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Please clarify the specific batch command for which you want to find the parameters to hide the command window. Without a specific command mentioned, it's difficult to accurately provide the relevant parameters. Please provide more context about the particular batch command operation you are referring to. View 1,954 Replies 9
Original Poster Posted 2006-12-01 10:50 ·  中国 湖北 恩施土家族苗族自治州 电信
初级用户
Credits 60
Posts 22
Joined 2005-09-25 19:54
20-year member
UID 42827
Status Offline
@echo off
xcopy c:\11\043dat \x:\043\dat /y

I remember there was a parameter to hide the window when this batch runs, but I forgot now. If anyone knows, please tell me the parameter, thanks!
Floor 2 Posted 2006-12-02 04:45 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline

  Try this:

@echo off
start "" /min cmd.exe /c xcopy c:\11\043dat\ x:\043\dat /y
Floor 3 Posted 2006-12-07 23:30 ·  中国 上海 普陀区 电信
初级用户
★★
Credits 153
Posts 68
Joined 2006-10-12 22:25
19-year member
UID 65507
From 上海
Status Offline
Originally posted by lxmxn at 2006-12-2 04:45:

  Try this:

@echo off
start "" /min cmd.exe /c xcopy c:\11\043dat\ x:\043\dat /y

It can still be used like this, heh, learned it, but the @echo off will still pop up when executing it, right

[ Last edited by uemuem on 2006-12-7 at 11:39 PM ]
个人主页-找餐厅:http://www.canting.cc
Floor 4 Posted 2006-12-08 03:43 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
Actually, when running a .bat file, a window always pops up for a moment.
Floor 5 Posted 2006-12-14 03:49 ·  中国 陕西 咸阳 联通
初级用户
Credits 38
Posts 16
Joined 2006-12-09 22:37
19-year member
UID 73059
Gender Male
From 乡下
Status Offline
Is there anything completely hidden?
Floor 6 Posted 2006-12-15 14:22 ·  中国 福建 泉州 电信
初级用户
Credits 64
Posts 26
Joined 2006-01-10 16:34
20-year member
UID 48756
Status Offline
Floor 7 Posted 2006-12-19 04:26 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 866
Posts 415
Joined 2005-12-04 11:19
20-year member
UID 46459
Status Offline
You can just create a shortcut to hide it.
Floor 8 Posted 2007-03-12 10:25 ·  中国 河南 郑州 联通
新手上路
Credits 16
Posts 7
Joined 2007-03-12 09:18
19-year member
UID 81488
Gender Male
Status Offline
Originally posted by htysm at 2006-12-18 03:26 PM:
You can hide it by creating a shortcut.

Can you be more specific?
Floor 9 Posted 2007-03-15 00:18 ·  中国 广东 东莞 电信
初级用户
Credits 50
Posts 21
Joined 2007-03-13 08:06
19-year member
UID 81579
Gender Male
Status Offline
Originally posted by hjlali at 2006-11-30 09:50 PM:
@echo off
xcopy c:\11\043dat \x:\043\dat /y

I would like to ask when the above batch processing is running, a window pops up. I remember that there was a parameter I could use to hide it before, but now I forget...

Making it into an EXE can completely hide it.
Please see my file for modifying the CPU type ------ modifying the BAT file into an EXE file
Attachments
CPU奔腾.part1.rar (97.66 KiB, Downloads: 53)
Floor 10 Posted 2007-03-15 00:20 ·  中国 广东 东莞 电信
初级用户
Credits 50
Posts 21
Joined 2007-03-13 08:06
19-year member
UID 81579
Gender Male
Status Offline
After merging and extracting, execute it, then right - click on your computer and select Properties to have a look.

Your computer's CPU type has been changed to Pentium 4 3.06Ghz, and it will revert after restart.

Clicking this file has no reaction, but the program is executing.
Attachments
CPU奔腾.part2.rar (17.9 KiB, Downloads: 35)
Forum Jump: