|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
『楼 主』:
可以最小化运行的批处理
使用 LLM 解释/回答一下
利用自身来最小化运行的批处理开头
@echo off
mode con cols=15 lines=1
if exist "Temp.bat" goto Start
>Temp.bat echo start/min "" "%~nx0"^&exit
start/min Temp.bat&exit
:Start
del "Temp.bat">nul
pause
虽然没有快捷方式、VBS的隐藏好,但只要自身一个文件
Minimize the running batch file starting with itself
@echo off
mode con cols=15 lines=1
if exist "Temp.bat" goto Start
>Temp.bat echo start/min "" "%~nx0"^&exit
start/min Temp.bat&exit
:Start
del "Temp.bat">nul
pause
Although not as good as shortcuts and VBS for hiding, it only needs one file itself
|
|
2006-11-26 12:49 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
呵呵,不错,这个方法也可以哈~
Hehe, not bad, this method can also work, ha~
|
|
2006-11-26 20:21 |
|
|
IceCrack
中级用户
   DOS之友
积分 332
发帖 168
注册 2005-10-6 来自 天涯
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
感觉还是两个文件啊,一个是echo了vbs 一个是echo了bat而已嘛
It feels like there are still two files. One is echoing VBS, and the other is just echoing BAT.
|

测试环境: windows xp pro sp2 高手是这样炼成的:C:\WINDOWS\Help\ntcmds.chm |
|
2006-11-26 21:53 |
|
|
anqing
高级用户
   
积分 859
发帖 413
注册 2006-8-14
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
lz的这句>Temp.bat echo start/min "" "%~nx0"^&exit我是单独写入temp中,然后运行这个Temp.bat ,运行后,既然无法结束它的进程,机器也有假死的现像。不知是为什么,请楼主赐教?这句的意思?
最后只有重启!
The meaning of this sentence: The user's sentence ">Temp.bat echo start/min "" "%~nx0"^&exit" I wrote it separately into temp, and then run this Temp.bat. After running, it cannot end its process, and the machine also has a phenomenon of freezing. I don't know why. I wonder if the landlord can give some advice? Finally, I have to restart!
|
|
2006-11-26 23:02 |
|
|
vlq5299
初级用户
 
积分 136
发帖 59
注册 2006-6-2
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
进程和任务栏里都有呀
It's all in the process and taskbar.
|
|
2006-12-5 02:57 |
|
|
HUNRYBECKY
银牌会员
    
积分 1179
发帖 442
注册 2006-9-9
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
使用CMDNOW工具,该工具非常强大,专门用于处理DOS或非DOW窗体的,可以在批处理中的开始加入CMDOW.EXE @ /DIS来禁止更改窗口,如果要隐藏窗口CMDOW.EXE @ /HID即可。这个命令可以到 http://commandline.co.uk上去下载。
Use the CMDNOW tool. This tool is very powerful and is specifically used to handle DOS or non-DOS windows. You can add CMDOW.EXE @ /DIS at the beginning of the batch processing to prohibit changing the window. If you want to hide the window, use CMDOW.EXE @ /HID. This command can be downloaded from http://commandline.co.uk.
|
|
2007-1-18 08:32 |
|
|
tghksj
社区乞丐
此图片另存后死机
积分 -49
发帖 90
注册 2006-12-2
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
HUNRYBECKY 老师
电信网开你给的地址有点困难,麻烦附件一个,谢谢:)
Teacher HUNRYBECKY
The address you provided for the telecom network opening is a bit difficult. Please attach one, thank you:)
|

我的网络笔记本.[color=Red]非联系本人请勿访问![/color]http://w.vicp.net[img]http://zhenlove.com.cn/cndos/fileup/files/QM2.jpg[/img] |
|
2007-1-18 08:52 |
|
|
lotus516
高级用户
    论坛上抢劫的
积分 551
发帖 246
注册 2006-9-21
状态 离线
|
|
2007-1-18 09:09 |
|
|
everest79
金牌会员
      一叶枝头,万树皆春
积分 2564
发帖 1127
注册 2006-12-25
状态 离线
|
|
2007-1-18 09:16 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
Originally posted by anqing at 2006-11-26 10:02:
lz的这句>Temp.bat echo start/min "" "%~nx0"^&exit我是单独写入temp中,然后运行这个Temp.bat ,运行后,既然无法结束它的进程,机器也有假 ...
你这句是反复运行Temp.bat自身的,会启动无数个,占用极大资源,当然会造成机器假死现像了
Originally posted by everest79 at 2007-1-17 20:16:
@echo off&&mode con cols=15 lines=1
%1 %2
start /min /i "" "%~nx0" goto min&&goto :eof
:min
echo xxx
pause>nul
exit
我模仿一个
这个好,不用产生临时文件
Originally posted by anqing at 2006-11-26 10:02:
The sentence of lz > Temp.bat echo start/min "" "%~nx0"^&exit I write it separately into temp, then run this Temp.bat. After running, since I can't end its process, the machine also has a fake...
You said this is repeatedly running Temp.bat itself, which will start countless ones, occupying extremely large resources, of course it will cause the machine to freeze phenomenon...
Originally posted by everest79 at 2007-1-17 20:16:
@echo off&&mode con cols=15 lines=1
%1 %2
start /min /i "" "%~nx0" goto min&&goto :eof
:min
echo xxx
pause>nul
exit
I imitate one
This is good, no temporary files are generated
|
|
2007-1-18 10:20 |
|
|
everest79
金牌会员
      一叶枝头,万树皆春
积分 2564
发帖 1127
注册 2006-12-25
状态 离线
|
|
2007-1-19 04:04 |
|
|
lixinwu
初级用户
 
积分 31
发帖 14
注册 2006-7-12
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
真正要隐藏,还得用其他办法
To truly hide, other methods need to be used
|
|
2007-1-20 01:03 |
|
|
kafen
初级用户
 
积分 97
发帖 43
注册 2005-7-25
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
Originally posted by everest79 at 2007-1-18 09:16:
@echo off&&mode con cols=15 lines=1
%1 %2
start /min /i "" "%~nx0" goto min&&goto :eof
:min
echo xxx
pause>nul
exit
我模仿一个
请详细解释一下,好吗?谢了!
This is a batch script. Let's break it down step by step:
First line: `@echo off&&mode con cols=15 lines=1` - `@echo off` turns off the display of commands being executed. `&&` is a logical AND operator, so if `@echo off` is successful, then `mode con cols=15 lines=1` is executed, which sets the console window to have 15 columns and 1 line.
Second line: `%1 %2` - This passes the first and second command-line arguments to whatever is being called.
Third line: `start /min /i "" "%~nx0" goto min&&goto :eof` - `start /min` starts a new window in minimized mode. `/i` sets the new window's environment to inherit the original's. The empty string is for the window title. `%~nx0` is the name and extension of the current batch file. Then it tries to `goto min` and if that's successful, it `goto :eof` (end of file).
Then the `:min` label: it echoes "xxx" and pauses until a key is pressed, then exits.
But the user just asked to translate the Chinese part where they said "我模仿一个" which translates to "I imitated one" but since the main task is to handle the translation of the provided text as per requirements, the overall translated text of the code block remains as the original code with the Chinese comment translated as above.
So the translated text for the whole content as per the request is:
Originally posted by everest79 at 2007-1-18 09:16:
@echo off&&mode con cols=15 lines=1
%1 %2
start /min /i "" "%~nx0" goto min&&goto :eof
:min
echo xxx
pause>nul
exit
I imitated one
|
|
2007-1-20 04:45 |
|
|
everest79
金牌会员
      一叶枝头,万树皆春
积分 2564
发帖 1127
注册 2006-12-25
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
当你双击执行时这个批处理只会执行以一代码
@echo off&&mode con cols=15 lines=1
%1 %2
start /min /i "" "%~nx0" goto min&&goto :eof
start /min /i "" "%~nx0" goto min再次启动自身后退出
然后批处理会这样执行
@echo off&&mode con cols=15 lines=1
goto min
:min
echo xxx
pause>nul
exit
When you double-click to execute, this batch file will only execute the following code:
@echo off&&mode con cols=15 lines=1
%1 %2
start /min /i "" "%~nx0" goto min&&goto :eof
start /min /i "" "%~nx0" goto min restarts itself and then exits
Then the batch file will execute like this:
@echo off&&mode con cols=15 lines=1
goto min
:min
echo xxx
pause>nul
exit
|
|
2007-1-20 08:31 |
|
|
HUNRYBECKY
银牌会员
    
积分 1179
发帖 442
注册 2006-9-9
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
Originally posted by everest79 at 2007-1-18 09:16:
@echo off&&mode con cols=15 lines=1
%1 %2
start /min /i "" "%~nx0" goto min&&goto :eof
:min
echo xxx
pause>nul
exit
我模仿一个
模仿的这个不是真正的隐藏,效果不好。
Originally posted by everest79 at 2007-1-18 09:16:
@echo off&&mode con cols=15 lines=1
%1 %2
start /min /i "" "%~nx0" goto min&&goto :eof
:min
echo xxx
pause>nul
exit
The one I imitated is not a real hide, the effect is not good.
The one imitated is not a real hide, the effect is not good.
|
|
2007-1-20 09:14 |
|