H
H
hloya_ram2018-12-20 06:00:43
cmd/bat
hloya_ram, 2018-12-20 06:00:43

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

1 answer(s)
K
Konstantin Tsvetkov, 2018-12-20
@tsklab

C:\Program Files\Opera\57.0.3098.102\opera.exeUsed to run C:\Program Files\Opera\launcher.exe. That is, you need to determine which is 57.0.3098.102older 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 question

Ask a Question

731 491 924 answers to any question