&的作用在run参数中 [英] The role of the & in the run argument
本文介绍了&的作用在run参数中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我们以此示例为例:
设置objShell = WScript.CreateObject(WScript.shell)
objShell.runcmd / K CD C:\& Dir& cd c:\ maor
我不明白&在命令中的作用是什么,为什么要添加。
请帮忙。
提前致谢。
我的尝试:
我曾尝试使用谷歌搜索,以及阅读示例命令。
Hi,
So lets take this sample for example:
Set objShell = WScript.CreateObject ("WScript.shell")
objShell.run "cmd /K CD C:\ & Dir & cd c:\maor"
I dont understand what the "&"'s role in the command, why was it added.
Please help.
Thanks in advance.
What I have tried:
Ive tried googling, as well as reading sample commands.
推荐答案
这没有任何关系使用脚本,但使用命令行。 Google为CMD&了解更多信息。
它只是一个在CMD提示符下在同一命令行上运行多个命令的分隔符。
This has nothing to do with the script but with the command line. Google for "CMD &" to find out more.
It just a separator to run multiple commands on the same command line at a CMD prompt.
这篇关于&的作用在run参数中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文