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-09 19:02
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Is there a BAT that has hidden processes? View 1,636 Replies 14
Original Poster Posted 2008-07-08 19:20 ·  中国 广西 南宁 电信
中级用户
★★
Credits 252
Posts 56
Joined 2003-12-29 00:00
22-year member
UID 14605
Gender Male
Status Offline
As the title says
Floor 2 Posted 2008-07-08 21:21 ·  中国 山东 淄博 联通
银牌会员
★★★
Credits 1,604
Posts 646
Joined 2008-04-13 23:39
18-year member
UID 115804
Gender Male
Status Offline
Not showing cmd.exe in Task Manager during runtime?
心绪平和,眼藏静谧,无比安稳的火... Purification of soul...Just a false...^_^
Floor 3 Posted 2008-07-08 23:51 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
9527 Hehe
I don't know if this counts
@echo off
copy "%windir%\system32\cmd.exe" .\SMSS.exe
start SMSS.exe
Floor 4 Posted 2008-07-09 01:52 ·  中国 广西 南宁 电信
中级用户
★★
Credits 252
Posts 56
Joined 2003-12-29 00:00
22-year member
UID 14605
Gender Male
Status Offline
Hide all processes
Floor 5 Posted 2008-07-11 09:19 ·  中国 江西 赣州 安远县 电信
银牌会员
★★★★
Credits 2,025
Posts 1,122
Joined 2007-09-05 20:15
18-year member
UID 96653
Gender Male
Status Offline
Open the process manager so that it is completely blank?
Floor 6 Posted 2008-07-11 16:42 ·  中国 广西 南宁 电信
中级用户
★★
Credits 252
Posts 56
Joined 2003-12-29 00:00
22-year member
UID 14605
Gender Male
Status Offline
Floor 7 Posted 2008-09-08 15:51 ·  中国 福建 泉州 电信
新手上路
Credits 12
Posts 6
Joined 2008-09-08 15:09
17-year member
UID 125119
Gender Male
Status Offline
What's the use of hiding?
Floor 8 Posted 2008-09-08 20:37 ·  中国 云南 昆明 电信
中级用户
★★
Credits 220
Posts 99
Joined 2008-06-26 15:12
18-year member
UID 120818
Gender Male
Status Offline
Just lock the Task Manager directly.
Floor 9 Posted 2008-09-08 21:18 ·  中国 北京 海淀区 联通
银牌会员
★★★
Credits 1,287
Posts 634
Joined 2007-05-02 15:06
19-year member
UID 87277
Gender Male
From cmd.exe
Status Offline
Deleted the task manager...
Floor 10 Posted 2008-09-13 22:55 ·  中国 江西 赣州 安远县 电信
银牌会员
★★★★
Credits 2,025
Posts 1,122
Joined 2007-09-05 20:15
18-year member
UID 96653
Gender Male
Status Offline
**Method 1: Modify taskmgr.exe with Resource Hacker**
Specifically, in Dialog→110, delete the line with 1009, or change 1009 to any other number, such as changing it to 10091.



Is this okay? If it is, then → Download the modified taskmgr.exe.

Method to replace the system's taskmgr.exe:

Method 1: Possibly first rename c:\WINDOWS\system32\dllcache\taskmgr.exe, and then you can replace c:\WINDOWS\system32\taskmgr.exe.

Method 2: Use "image hijacking". Run the following command:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe" /v debugger /t reg_sz /d "path of the modified taskmgr.exe" /f


Method 2: Use the command-line tool NirCmd
The command is: nircmd win child title "Windows Task Manager" hide class "SysListView32"



are all uniformly blank.

If you want the user to start "Windows Task Manager" to be like this, I think the only way is to compile the above command into an exe, and then "image hijack" to start this exe.

Compile with AutoHotkey. The code is basically like this:
#NoTrayIcon
run,taskmgr.exe
WinWait,Windows 任务管理器
run,nircmd win child title "Windows 任务管理器" hide class "SysListView32"

The effect is that the user watches the process list being hidden. If this is okay, then → Download the compiled exe.


If the above is problematic, then first minimize taskmgr.exe → hide the list → activate the window. The code:
#NoTrayIcon
run,taskmgr.exe,,Min
WinWait,Windows 任务管理器
run,nircmd win child title "Windows 任务管理器" hide class "SysListView32"
sleep 300
WinActivate,Windows 任务管理器

Download

Of course, you also need to put Nircmd.exe into %windir%.

AutoHotkey should be able to directly implement that hiding function...

[ Last edited by tireless on 2008-9-13 at 03:15 AM ]
Recent Ratings for This Post ( 2 in total) Click for details
RaterScoreTime
BC +2 2008-09-14 11:07
moniuming +8 2008-09-19 16:38
Floor 11 Posted 2008-09-14 11:08 ·  中国 广东 江门 电信
中级用户
★★
Credits 338
Posts 175
Joined 2007-10-21 15:30
18-year member
UID 100351
Gender Male
Status Offline
Powerful and tireless brother Tireless...
Floor 12 Posted 2008-09-18 09:24 ·  中国 广东 潮州 电信
新手上路
Credits 18
Posts 8
Joined 2008-09-17 21:24
17-year member
UID 125896
Gender Male
Status Offline
Learned, I don't know if binding it with other programs can also achieve your requirement
Floor 13 Posted 2008-09-19 12:50 ·  中国 广东 肇庆 电信
中级用户
★★
Credits 206
Posts 103
Joined 2008-05-06 16:59
18-year member
UID 117911
Gender Male
From 广东 肇庆
Status Offline
10楼的tireless

Little brother is currently learning nircmd, can you explain the help file of nricmd in more detail?
Floor 14 Posted 2008-09-19 14:08 ·  中国 江西 赣州 安远县 电信
银牌会员
★★★★
Credits 2,025
Posts 1,122
Joined 2007-09-05 20:15
18-year member
UID 96653
Gender Male
Status Offline
Originally posted by mgq at 2008-9-18 04:50 PM:
Tireless on floor 10
I'm currently learning nircmd. Could you explain the help file of nircmd in more detail?

There are too many. Moreover, the help file explains it in detail, with both command explanations and many examples. Since my English is not very good, I just keep the translation dictionary open and read it carefully...

The above child window class was obtained using spy++.

[ Last edited by tireless on 2008-9-18 at 06:10 PM ]
Floor 15 Posted 2008-09-19 15:22 ·  中国 江苏 扬州 江都区 电信
高级用户
★★★
Credits 620
Posts 329
Joined 2007-12-05 15:34
18-year member
UID 104754
Gender Male
Status Offline
What's the meaning of this?

Most people don't use the system's own one. Instead, they use a small tool to check processes...
Forum Jump: