─────────────────── 版务记录 ────────────────────
执行人:bjsh
原标题: 菜鸟盼望高手指点一下
说明:因标题表述过于模糊,不便于论坛的搜索和管理,请在三日内修改标题。
提示:修改标题请在当前帖的右下脚点 编辑,修改完毕之后按 编辑帖子 即可。
处罚:因属论坛新人,暂时不予处罚;若三日尚未修改标题,将扣除2点积分,
以示惩罚,并由版主强制修改标题。请点击这里阅读论坛发帖规定或者查看
提问的智慧,以避免在今后的讨论中违规发帖。
─────────────────── 版务记录 ────────────────────
这是我在论坛里下的一个批处理,对于想我一样的菜鸟很希望有高手能帮我们解读一下,这样我想学起来 比看那些枯燥的命令来的快。还请各位大虾能不吝赐教
@echo off --------------- 这个混了这么久知道是什么意思了 不显示命令本身
:1 --------------------------不懂
title 结束进程 ----------- cmd的标题
color f1 -------------------- 脚本的背景颜色
mode con: cols=40 lines=18 ---我猜是窗口的大小吧!
echo. -------------为什么后面有个点
set /p run=请输入要结束的程序名 --------还请能详细的介绍一下
::ntsd -c q -pn %run% -------------命令前面::是什么意思
taskkill /f /t /im %run% --------------这个命令知道是什么意思但是和前面的连起来就不知道了
pause>nul
小弟在此先谢过了:)
Last edited by daoshui18 on 2007-5-11 at 04:23 PM ]
─────────────────── Moderation Record ────────────────────
Executor: bjsh
Original Title: Novice hopes for experts' guidance
Description: Because the title is too vague, it is not convenient for forum search and management. Please modify the title within three days.
Prompt: To modify the title, click Edit at the bottom right of the current post, and then click Edit Post after modification.
Punishment: Since it is a new forum user, no punishment is temporarily given; if the title is not modified within three days, 2 points will be deducted as punishment, and the moderator will forcefully modify the title. Please click here to read the forum posting regulations or view The Wisdom of Asking Questions to avoid violating posting regulations in future discussions.
─────────────────── Moderation Record ────────────────────
This is a batch script I downloaded in the forum. For novices like me, I really hope experts can help us interpret it, so that I can learn faster than reading those boring commands. Please also ask all experts to be generous with your advice
@echo off --------------- I've mixed this up for a long time and know what it means, which is not to display the command itself
:1 -------------------------- Don't understand
title End Process ----------- The title of cmd
color f1 -------------------- The background color of the script
mode con: cols=40 lines=18 --- I guess it's the size of the window!
echo. ------------- Why is there a dot at the end
set /p run=Please enter the program name to end -------- Please can you introduce it in detail
::ntsd -c q -pn %run% ------------- What does :: mean in front of the command
taskkill /f /t /im %run% -------------- I know what this command means but don't know when connected with the front
pause>nul
I would like to thank you here first :)
Last edited by daoshui18 on 2007-5-11 at 04:23 PM ]