Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试创建一个目录并立即使用 DOSKEY 更改为该目录。我认为这会起作用,但它给了我错误The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
DOSKEY md=mkdir $* && cd $*
有谁知道为什么这是错误的以及如何解决它?
我最终在这里找到了答案
DOSKEY md=mkdir "$1"$tcd "$1"
我试图使用&&而不是$t
&&
$t
这对你有用吗?
C:>doskey aaa=MKDIR "$*"$tCD "$*" C:>doskey /macros aaa=MKDIR "$*"$tCD "$*" C:>aaa arf C:> 13:33:59.15 C:\Users\pwatson\x\arf C:>