|
cr2516
初级用户
 
积分 32
发帖 12
注册 2006-7-20
状态 离线
|
『楼 主』:
怎么自动关闭命令行窗口
使用 LLM 解释/回答一下
脚本运行完毕后 怎么可以让命令行窗口自动关闭
After the script finishes running, how can I make the command line window close automatically
|
|
2006-7-20 13:25 |
|
|
flying008
中级用户
  
积分 245
发帖 103
注册 2006-6-30
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
呵呵……在批处理文件 的最后一句写上EXIT就行了,
echo off
start d:\123\456.exe 如果运行WINDOWS程序的话,用START命令来启动就不等了
exit 批处理脚本运行完毕后命令行窗口自动关闭
Hehe……Just write EXIT at the last sentence of the batch file,
echo off
start d:\123\456.exe If you run a WINDOWS program, use the START command to start it without waiting
exit The command line window automatically closes after the batch script finishes running
|
|
2006-7-20 13:30 |
|
|
cr2516
初级用户
 
积分 32
发帖 12
注册 2006-7-20
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
不行呀 我一运行脚本 程序和命令行窗口就都弹出来了
It doesn't work. As soon as I run the script, both the program and the command line window pop up.
|
|
2006-7-20 13:35 |
|
|
cr2516
初级用户
 
积分 32
发帖 12
注册 2006-7-20
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
我的意思是手动运行脚本 显示程序 但是不形式命令行窗口 我试了 加exit不起作用
What I mean is to manually run the script to display the program but without showing the command line window. I tried adding exit but it didn't work.
|
|
2006-7-20 13:38 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
“但是不形式命令行窗口”这句话如何理解?如果自己都描述不清楚,如何让别人解答?
"However, it is not in the form of a command line window" How to understand this sentence? If you can't even describe it clearly yourself, how can you let others answer?
|
|
2006-7-20 13:49 |
|
|
cr2516
初级用户
 
积分 32
发帖 12
注册 2006-7-20
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
一个运行播放器的脚本 点击之后 播放器运行同时显示命令行窗口 可以运行程序的同时不显示命令行窗口吗?
A script to run a player. After clicking, the player runs and the command line window is displayed. Can the command line window not be displayed while the program is running?
|
|
2006-7-20 13:55 |
|
|
fastslz
铂金会员
       DOS一根葱
积分 5493
发帖 2315
注册 2006-5-1 来自 上海
状态 离线
|
|
2006-7-20 14:26 |
|
|
cr2516
初级用户
 
积分 32
发帖 12
注册 2006-7-20
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
1.bat
d:
cd D:\Program Files\Ringz Studio\Storm Codec
mplayerc.exe -play -add D:\TDdownload\1.asf
每次双击运行1.bat就播放器和命令行窗口都弹出来了
1.bat
d:
cd D:\Program Files\Ringz Studio\Storm Codec
mplayerc.exe -play -add D:\TDdownload\1.asf
Every time I double-click to run 1.bat, both the player and the command line window pop up
|
|
2006-7-20 14:34 |
|
|
cr2516
初级用户
 
积分 32
发帖 12
注册 2006-7-20
状态 离线
|
|
2006-7-20 14:35 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
原来是暴风影音啊,本人机子上没装,也不想装,听说插件N多。
这是因为调用了暴风影音来打开一个影音文件,导致要关闭暴风影音之后,CMD窗口才会退出。如果不用自动打开某个影音文件的话,把mplayerc.exe -play -add D:\TDdownload\1.asf改成 start mplayerc.exe ,则启动暴风影音后CMD窗口能退出,然后手动打开指定影音文件。
Oh, it turns out it's Storm Video. I don't have it installed on my computer and don't want to install it. I've heard there are tons of plugins.
This is because Storm Video was called to open a video and audio file, so the CMD window won't close until Storm Video is closed. If you don't want to automatically open a certain video and audio file, change mplayerc.exe -play -add D:\TDdownload\1.asf to start mplayerc.exe, then the CMD window can close after starting Storm Video, and then you can manually open the specified video and audio file.
|
|
2006-7-20 14:52 |
|
|
cr2516
初级用户
 
积分 32
发帖 12
注册 2006-7-20
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
高人呀 我在mplayerc.exe -play -add D:\TDdownload\1.asf 前面加上start 就可以了 谢谢了 我想知道为什么加上start 再点击运行的时候就不会显示命令行窗口了
Expert! You added "start" before "mplayerc.exe -play -add D:\TDdownload\1.asf", and when you click to run it, the command line window doesn't show up because the "start" command in Windows is used to start a separate process in the background without displaying the command prompt window.
|
|
2006-7-20 15:15 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
这个具体是什么原因,我也说不清楚,按照我的习惯,如果调用的是外部程序,不想等待外部程序退出就执行下一步操作的话,就在前边加 start。
期待高人作理论上的深入剖析。呵呵。
I can't clearly explain the specific reason. According to my habit, if I call an external program and don't want to wait for the external program to exit to perform the next operation, I add "start" in front.
Looking forward to experts' in-depth theoretical analysis. Hehe.
|
|
2006-7-20 15:31 |
|
|
cr2516
初级用户
 
积分 32
发帖 12
注册 2006-7-20
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
hehe 还是一样十分感谢
hehe Still, thank you very much
|
|
2006-7-20 16:53 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
start: 启动另一个窗口运行指定的程序或命令。
当前窗口的批处理继续运行,不必等待另一个窗口运行完毕
start: Run the specified program or command in another window. The batch processing in the current window continues to run without waiting for the other window to finish running
|
|
2006-7-20 17:18 |
|
|
Scott0902
中级用户
  
积分 466
发帖 237
注册 2005-10-12
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
如果是调用暴风影音打开视频的话,用不着用批处理啊,创建一个快捷方式不就省事了?这个快捷方式只需一条命令:"D:\Program Files\Ringz Studio\Storm Codec\mplayerc.exe" -play -add D:\TDdownload\1.asf
If it's about using Baofeng Video Player to open a video, there's no need to use batch processing. Creating a shortcut is easier. This shortcut only needs one command: "D:\Program Files\Ringz Studio\Storm Codec\mplayerc.exe" -play -add D:\TDdownload\1.asf
|
|
2006-7-20 18:53 |
|