mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-12-23 11:56:21 +00:00
Ventoy2Disk.exe update.
1. Add exFAT/NTFS/FAT32 option when install Ventoy 2. Display Ventoy partition file system in physical disk 3. String "Status x%" is missing for translations (#1667)
This commit is contained in:
@@ -255,3 +255,27 @@ BOOL PSHELL_ShrinkVolume(int DriveIndex, const char* VolumeGuid, CHAR DriveLette
|
||||
Log("PSHELL_ShrinkVolume<%d> %C: ret:%d (%s)", DriveIndex, DriveLetter, ret, ret ? "SUCCESS" : "FAIL");
|
||||
return ret;
|
||||
}
|
||||
|
||||
BOOL PSHELL_FormatVolume(char DriveLetter, int fs)
|
||||
{
|
||||
BOOL ret;
|
||||
const char* fsname = NULL;
|
||||
CHAR CmdBuf[512];
|
||||
|
||||
if (fs == 1)
|
||||
{
|
||||
fsname = "NTFS";
|
||||
}
|
||||
else
|
||||
{
|
||||
fsname = "FAT32";
|
||||
}
|
||||
|
||||
sprintf_s(CmdBuf, sizeof(CmdBuf),
|
||||
"format-volume -DriveLetter %C -FileSystem %s -Force -NewFileSystemLabel Ventoy",
|
||||
DriveLetter, fsname);
|
||||
|
||||
ret = PSHELL_CommProc(CmdBuf);
|
||||
Log("PSHELL_FormatVolume %C: ret:%d (%s)", DriveLetter, ret, ret ? "SUCCESS" : "FAIL");
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user