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 21:29
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Question about a small issue with a batch file for process descriptions View 748 Replies 2
Original Poster Posted 2007-03-25 09:19 ·  中国 四川 遂宁 电信
中级用户
★★
Credits 278
Posts 103
Joined 2006-10-21 21:08
19-year member
UID 67562
Gender Male
Status Offline
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?
Floor 2 Posted 2007-03-25 11:26 ·  中国 北京 鹏博士BGP
中级用户
★★
Credits 404
Posts 179
Joined 2006-03-30 14:44
20-year member
UID 53056
Status Offline
It works fine here.
I tried both uppercase and lowercase, both work.
Floor 3 Posted 2007-03-25 12:18 ·  中国 四川 遂宁 电信
中级用户
★★
Credits 278
Posts 103
Joined 2006-10-21 21:08
19-year member
UID 67562
Gender Male
Status Offline
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.
Forum Jump: