Answer the question
In order to leave comments, you need to log in
How to open a file from the last subfolder using bat'nick?
Good afternoon.
The program directory contains directories with different versions of the program (1.1.10, 1.2.11, etc).
And every time a new version is installed, a directory is created whose name is equal to the version of the program.
Please help me create a batch file that launches the start.exe file in the directory of the latest version of the program.
What should be the regular expression in this case?
start "C:\Папка\?.?.??\start.exe"
#где ?.?.?? - это наименование последней версии
Answer the question
In order to leave comments, you need to log in
C:\Program Files\Opera\57.0.3098.102\opera.exe
Used
to run C:\Program Files\Opera\launcher.exe
. That is, you need to determine which is 57.0.3098.102
older 57.0.3098.91
, but vice versa by symbols. Also, the installation time, in general, does not determine the older version. WinAPI has GetFileVersionInfo
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question