我使用了一个批处理文件中,我设置绝对路径变量如下批处理脚本问题
代码段(批处理文件:brk_validation.bat)
SET ABS_PATH=%~dp0
echo Completed the Validation of files in %ABS_PATH%
在命令提示符下运行批处理程序:
D:\Files>brk_validation.bat .
输出:
Completed the Validation of files in D:\Files\
问题:
我已经把在不同的目录下的批处理文件,然后运行通过给它的完整路径bat文件,如下图所示:
D:\Files>D:\Work\brk_validation.bat .
输出:
Completed the Validation of files in D:\Work\
预期输出:
Completed the Validation of files in D:\Files\
我想在文件存在即d当前目录路径:对于上面的例子\文件。
所以,任何帮助表示赞赏。谢谢 !!
对不起,我现在能够得到...谢谢 – Praveen 2014-10-08 14:01:45