中国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-03 23:25
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Question about a small issue with a batch file for process descriptions
Printable Version  749 / 2
Floor1 zzhh612 Posted 2007-03-25 09:19
中级用户 Posts 103 Credits 278
I downloaded a batch file for process descriptions from this site. The code is as follows:

@echo off
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\HPQ\IAM\bin
color 1f
title Process Analysis Program hacker by brave lau
echo Press any key to start analysis
pause>nul
set space=
echo.
echo The program analysis is as follows:
echo =========================================================================
echo.
echo Process name Process description
echo.
call tasklist.exe

::Program descriptions defined below; you can add more yourself.

set alg.exe=·Application Layer Gateway service, this is an application layer gateway service used for network sharing
set CCenter.exe=·Rising Information Center
set csrss.exe=『System Process』manages Windows graphics-related tasks
set mstask.exe=·Windows Scheduled Tasks
set realsched.exe=·RealPlayer auto-update program
set regsvc.exe=·Remote Registry Service
set rfwsrv.exe=·Rising Personal Firewall related program
set rpcss.exe=·Windows RPC port mapping process handles RPC calls
set spoolsv.exe=『System Process』print service
set services.exe=『System Process』manages starting and stopping services
set GoogleToolbarNotifie.exe=·KuGou toolbar
set atiptaxx.exe=·Part of the ATI graphics card driver
set runiep.exe=·Kaka Internet Assistant monitors the browser
set TaskSwitch.exe=『System Process』related program for Microsoft's process task switching tool
set notepad.exe=·Notepad program
::Main program
setlocal enabledelayedexpansion
for /f "tokens=1" %%i in ('tasklist /NH') do (
set str=%%i %space%
set str=!str:~0,25!
if defined %%i (echo !str! !%%i!) else echo !str! ‖→Undefined program)
echo =========================================================================
echo Analysis complete...

pause>nul

Why does GoogleToolbarNotifie.exe always get shown as an undefined program when running it? It's clearly already described. Is it because the string is too long?
Floor2 kcdsw Posted 2007-03-25 11:26
中级用户 Posts 179 Credits 404
It works fine here.
I tried both uppercase and lowercase, both work.
Floor3 zzhh612 Posted 2007-03-25 12:18
中级用户 Posts 103 Credits 278
Did you load GoogleToolbarNotifie.exe?
I mean this one alone is displaying incorrectly.
If it isn't loaded, then of course there won't be any problem.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023