View Single Post
Old 14th June 2019, 14:52   #7
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,148
If you can't open a handle you can ask the directory:

Quote:
!include LogicLib.nsh
System::Call 'KERNEL32::FindFirstFile(t "c:\hiberfil.sys", @r1)p.r0' ; NSIS 3+
${If} $0 P<> -1
System::Call 'KERNEL32::FindClose(pr0)'
System::Call '*$1(i,l,l,l,i.r1,i.r0)'
IntFmt $1 "0x%x" $1
IntFmt $0 "%.8x" $0
StrCpy $1 $1$0
DetailPrint Directory.Size=$1
${EndIf}
This information might not be up to date.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote