Windows批处理脚本中是否有一种方法可以从包含文件名和/或相对路径的值返回绝对路径?
鉴于:
"..\" "..\somefile.txt"
我需要相对于批处理文件的绝对路径.
例:
Bar\test.bat ..\somefile.txt
%1
windows batch-file relative-path absolute-path
absolute-path ×1
batch-file ×1
relative-path ×1
windows ×1