记事本说路径对批处理文件无效 [英] Notepad saying path is invalid for batch file

查看:95
本文介绍了记事本说路径对批处理文件无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在记事本中写了这段代码来打开程序文件夹。它说它找不到这个目录。我甚至试过把它放在双引号中,但是它只是打开一个命令提示窗口而没有其他事情发生?



@echo off

开始C:\Program Files \







@echo off

开始C:\Program Files \

I wrote this code in notepad to open the program files folder. It said that it couldn't find this directory. I even tried putting it in double quotes, but then it just opened a command prompt window and nothing else happened?

@echo off
start C:\Program Files\

OR

@echo off
start "C:\Program Files\"

推荐答案

你的问题没有说出你预期会发生什么,但我认为想要打开在c:\program files的资源管理器窗口。



我发现启动命令是特殊的或者没有记录,因为它似乎是可选的标题字段并不总是可选的!



我的提示是尝试使用以下格式的空标题字段:



开始c:\ program program



Alan。
You question doesn't say what you expected to happen but but I assume that want to open an Explorer window at "c:\program files".

I've found that Start command is either peculiar or just not documented corrected as it seems that the optional title field is not always optional!

My tip would be to try the following format with an empty title field:

Start "" "c:\program files"

Alan.


这篇关于记事本说路径对批处理文件无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆