Ventoy Forums
versão do ventoy via comando - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy General Use —— Ventoy 使用交流 (https://forums.ventoy.net/forumdisplay.php?fid=1)
+--- Forum: Ventoy Discussion Forum (https://forums.ventoy.net/forumdisplay.php?fid=2)
+--- Thread: versão do ventoy via comando (/showthread.php?tid=2391)



versão do ventoy via comando - jlsupremo - 03-01-2023

I need to know how I can receive the version that is installed on the pendrive via Windows command, so that if the version is out of date I can run the command Ventoy2Disk.exe VTOYCLI /U /Y /DriveBig Grin:

What command to receive the return of the version installed on the drive?

VTOYCL


RE: versão do ventoy via comando - Steve2926 - 03-04-2023

Code:
for /f "tokens=2 delims==" %%D in ('%WINDIR%\system32\find.exe %PTN2%\grub\grub.cfg "VENTOY_VERSION="') do set VER=%%D

where PTN2 is the drive letter of the 2nd partition