For convenience in testing, edit.com is used in place of winxpsp3.gho for testing.
Among them, the result of LMODEXp6.BAT is a little different from the free space shown by dir, and I don't know what's going on.
lmodexp1.bat
vol | lmod /L1 set label=[$!] >labelexp.bat
call labelexp.bat
echo The detected volume label of this partition is %label%
LMODEXp2.BAT
dir edit.com | lmod /L5 set filedate=[29,25] >filedate.bat
call filedate.bat
echo The detected time of the last system backup is %filedate%
LMODEXp3.BAT
dir edit.com | lmod /L5 set filedate=The detected time of the last system backup is [29,25] >filedate.bat
call filedate.bat
echo %filedate%
LMODEXp4.BAT
dir edit.com | lmod /L5 set filename= [1,8].[10,3] >filename.bat
call filename.bat
echo The detected name of the last system backup is %filename%
LMODEXp5.BAT
dir edit.com | lmod /L5 set filesize=[13,16] >filesize.bat
call filesize.bat
echo The detected size of the last system backup is %filesize% bytes
LMODEXp6.BAT
dir edit.com | lmod /L8 set freesize=[18,17] >freesize.bat
call freesize.bat
echo The detected free space of the current partition is %freesize% bytes
Among them, the result of LMODEXp6.BAT is a little different from the free space shown by dir, and I don't know what's going on.
lmodexp1.bat
vol | lmod /L1 set label=[$!] >labelexp.bat
call labelexp.bat
echo The detected volume label of this partition is %label%
LMODEXp2.BAT
dir edit.com | lmod /L5 set filedate=[29,25] >filedate.bat
call filedate.bat
echo The detected time of the last system backup is %filedate%
LMODEXp3.BAT
dir edit.com | lmod /L5 set filedate=The detected time of the last system backup is [29,25] >filedate.bat
call filedate.bat
echo %filedate%
LMODEXp4.BAT
dir edit.com | lmod /L5 set filename= [1,8].[10,3] >filename.bat
call filename.bat
echo The detected name of the last system backup is %filename%
LMODEXp5.BAT
dir edit.com | lmod /L5 set filesize=[13,16] >filesize.bat
call filesize.bat
echo The detected size of the last system backup is %filesize% bytes
LMODEXp6.BAT
dir edit.com | lmod /L8 set freesize=[18,17] >freesize.bat
call freesize.bat
echo The detected free space of the current partition is %freesize% bytes
Attachments
