批处理文件(.dat/.cmd)打开多个文件

本文介绍了一种在Windows环境下使用批处理文件快速打开不同位置多个文件的方法,并解释了如何正确设置文件路径以确保程序能够准确执行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在window下,有时候经常需要一次性打开多个文件,如果都在一个目录下还好,但是如果需要打开的文件分布在各个地方,逐一打开还是挺麻烦的。通过批处理可以偷下懒。废话少说,例文如下:

一、创建一个后缀名为.dat或者.cmd的文本文件;(如图)

二、右键单击,编辑、在以上文件中输入需要执行的文件(运用程序),保存;(如图)


三、双击该批处理文件即可;


Tips:

1、指令:start D:\"Program Files\Sublime Text 2"\sublime_text.exe 中某部分之所以需要双引号,是因为里面含空格;不使用引号的话,系统无法识别正确的路径(没有引号可以直接写完整路径,如第二、三个start指令);

2、不能用引号将整个文件路径包住,否则start会让你得不到想要的结果,详情请在cmd下输入:start /?



dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理 dat批处理
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值