有什么办法可以访问命令提示符中的.cmd文件路径?
我有一个.cmd文件,我想在其中编写一些代码。但是首先,我希望一个代码打开.cmd文件路径,并且当有人单击我的.cmd文件时,它是在命令提示符中打开的。谁能帮我吗?
谢谢
I have a .cmd a file and I want to write some code in it. But first of all I want a code to open the .cmd file path and when someone clicks my .cmd file, it's dir opens in command prompt. Can anyone help me with this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是什么意思是“打开命令提示”?如果您想从当前dir 中使用新的CMD窗口,只需添加以下命令:
或者即使
您想请在该窗口中查看当前目录的内容。另外,您可以打开Windows Explorer中的当前文件夹 - 只需将其添加到您的文件命令:
What's mean 'dir opens in command prompt'? If you want to open new cmd window from current dir, just add to your file the following command:
Or even
if you want to see a content of the current directory in that window. Also you can open the current folder in Windows Explorer - just add to your file this command:
固定
只需在.cmd文件中复制此代码:
fixed
Just copy this code in your .cmd file: