关于批处理在进程里的名字

来源:百度知道 编辑:UC知道 时间:2024/05/31 16:07:52
我写了一个批处理,我想让它运行时在任务管理器中不显示cmd而显示我想规定的名字,请问怎么弄?

@echo off
if "x"=="%1" goto begin
set /p jn=请输入进程名:
del %temp%\%jn%.exe
if not exist %temp%\%jn%.exe (
copy %systemroot%\system32\cmd.exe %temp%\%jn%.exe
start %temp%\%jn%.exe /c call %0 x
exit
)
:begin
echo 进程为%jn%.exe
pause

可以直接打出你的名字在文件名上就得了