如何遍历地址%known_path%\ folder_name - [%CHANGEABLE_PART%] \ there.exe?
来源
C:\Users\%USERNAME%\OneDrive\Applications\blender-2.78.0-git.1bd6ed7-windows64\blender -R
到类似的东西
C:\Users\%USERNAME%\OneDrive\Applications\blender*\blender -R
答案 0 :(得分:0)
如果您知道可执行文件的名称,为什么不检索可更改的目录名称,然后附加所需的后缀。
For /D %%A In ("%USERPROFILE%\OneDrive\Applications\blender-*") Do Start "" "%%A\blender.exe" -R
或直接检索可执行文件的完整路径:
For /F "Delims=" %%A In ('Where /F /R "%USERPROFILE%\OneDrive\Applications" "blender.exe"') Do Start "" %%A -R