Memory 如何使用命令提示符使用.exe的内存

Memory 如何使用命令提示符使用.exe的内存,memory,command-line,command-prompt,Memory,Command Line,Command Prompt,使用命令提示符,如何获取执行.exe时使用的内存。例如,要查找花费的时间,我可以使用.bat文件,如下所示: @echo off time < nul Function.exe time < nul @echo关闭 时间

使用命令提示符,如何获取执行.exe时使用的内存。例如,要查找花费的时间,我可以使用.bat文件,如下所示:

@echo off
time < nul
Function.exe
time < nul
@echo关闭
时间<努尔
Function.exe
时间<努尔
如何对已使用的内存执行此操作?

尝试以下操作:

@echo off
mem | find "available to MS-DOS"
function.exe
mem | find "available to MS-DOS"
mem
命令的输出(示例):


顺便说一句,我不认为Vista/Windows 7中没有时间记忆,或者至少64位版本的Windows 7没有时间记忆。Windows 7:
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