gpt4 book ai didi

batch-file - 批处理文件中的 ".\"是什么意思?

转载 作者:行者123 更新时间:2023-12-03 16:42:25 27 4
gpt4 key购买 nike

的上下文中,您的 SQL 脚本所在的目录。默认为 .\ .\ 是否代表您当前所在的目录?

..\ 呢?

SET DIR=%~d0%~p0%

最佳答案

does .\ represent the directory you are currently in?

是的。

What about ..\?

父目录

What about SET DIR=%~d0%~p0%

MS docs

设置环境变量DIR为批处理文件所在的驱动器和路径。

关于batch-file - 批处理文件中的 ".\"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18881579/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com