
Code: Select all
Debug FileSize("C:\Windows\System32\mblctr.exe") ; -1

Code: Select all
Debug FileSize("C:\Windows\System32\mblctr.exe") ; -1
Code: Select all
Define.s File = "C:\Windows\System32\mblctr.exe"
CompilerIf #PB_Compiler_Processor = #PB_Processor_x86
File = "c:\Windows\Sysnative\mblctr.exe"
CompilerEndIf
Debug FileSize(File)
Code: Select all
f$="C:\Windows\System32\mblctr.exe"
s=FileSize(f$)
If s=-1
s=FileSize(ReplaceString(f$,"\System32\","\SysNative\"))
EndIf
Debug s
PB wrote:> Check if the sysnative dir exists, if exist, use it!
Not that simple. It doesn't "exist" on my 64-bit Windows.
Can't view it in Explorer or with the "dir" DOS command.
And yes, I'm viewing all files/folders/nothing hidden/etc.