2013-04-03 49 views

回答

0

嘗試這種情況:從mem命令(例如)

@echo off 
mem | find "available to MS-DOS" 
function.exe 
mem | find "available to MS-DOS" 

輸出:

655360 bytes total conventional memory 
655360 bytes available to MS-DOS 
599312 largest executable program size 

1048576 bytes total contiguous extended memory 
    0 bytes available contiguous extended memory 
941056 bytes available XMS memory 
     MS-DOS resident in High Memory Area 

順便說一句。而不是time <nul,您可以使用time /t

+0

mem沒有在Vista/Windows 7中可用,我不認爲。無論如何,至少可以使用 – ZeeeeeV

+0

或至少64位版本的Windows 7。 – ZeeeeeV

+0

Windows 7:[link](http://stackoverflow.com/questions/11343190/how-to-check-available-memory-ram-via-batch-script) – Endoro

相關問題