windows 7 - to check ram utilization by an executable when called using command prompt

07
2014-07
  • user337803

    I have created an executable which takes just 5 ms to execute.I want to know the RAM utilized during the execution of this executable.I am calling the exe from command prompt to execute.I tried using Task manager but i can't find it since the process is not running continuously.Please help me with this.Thank you

  • Answers
  • Benedikt

    The command line tool tasklist can help you there. Run it immediately after running your original program and dump the output into a text file.

  • Dave Rook

    I do this for software often, and you can use the task manager.

    Keep an eye on the Work Set (Memory) and Memory (Private working set) and the commit size (you may need to add this columns)


  • Related Question

    windows xp - "Access is Denied" when executing application from Command Prompt
  • xpda

    Today when I tried to run an old DOS utility from the XP Command prompt, I got the message "Access is Denied." Then I found that most of the DOS utilities would not run, even though I have "full control" over them. They worked just fine a few weeks ago, and I have not made any OS changes other than Windows Upgrades.

    Then I tried running edlin.exe and edit.com from the Windows\system32 folder. Same result - "Access is Denied." I tried running these applications from Windows Explorer and got the message "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item."

    I am logged in as a member of Administrators and have full control over these files. I tried logging in as THE Administrator, with no change. I checked the security settings on the files, and have full control over all of them. I have tried copying the files to different drives, booting in safe mode, and running without antivirus and firewall, all with no change.

    Does anybody know what could cause this?


  • Related Answers
  • Hugh Allen

    What are your access rights to NTVDM.EXE? (this is the component which runs DOS and win16 programs)

    I suggest using Process Monitor to find out exactly which process is trying and failing to access which file.

    EDIT TO ADD:

    Looking at the results of Process Monitor, it looks like you've got the "Prevent access to 16-bit applications" policy set. To fix it, Start -> Run, "Gpedit.msc". Navigate to Computer Configuration -> Administrative Templates -> Windows Components -> Application Compatibility and look at "Prevent access to 16-bit applications" in the right-hand pane. If it says Enabled, change it. Otherwise, look for the same policy under User Configuration.

  • lavamunky

    Are you running the command prompt as administrator though? I think it's Vista/7 and maybe XP you have to state that you want to run command prompt in administrator mode, even if you're logged in as an administrator. In Vista, I think it's simply right click->run as administrator (the go through UAC if it's on)