Matte
09-06-2005, 11:25 AM
Hello.
Is it possible to get the physical memory from the cmd?
Thankfull for any tips or info.
Regards.
Jerold Schulman
09-07-2005, 06:14 PM
On Tue, 6 Sep 2005 12:25:45 +0200, "Matte" <mattias.hammarback@nospamdfdstransport.se> wrote:
>Hello.
>
>Is it possible to get the physical memory from the cmd?
>
>Thankfull for any tips or info.
>
>Regards.
>
See tip 0985 » Freeware tool returns physical memory in batch.
in the 'Tips & Tricks' at http://www.jsifaq.com
See tip 8296 » Freeware MemCheck displays memory statistics and can commit and lock memory.
You can parse the output in a FOR command:
for /f "Tokens=1* Delims=," %%a in ('memcheck^|find "TOTAL:"') do (
if not defined mem set mem=%%b
)
for /f "Tokens=1" %%a in ('@echo %mem%) do (
set /a mem=%%a
)
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
Mark V
09-07-2005, 07:22 PM
In microsoft.public.win2000.cmdprompt.admin Matte wrote:
> Hello.
>
> Is it possible to get the physical memory from the cmd?
>
> Thankfull for any tips or info.
PSINFO.EXE (free, Sysinternals) may be helpful.
COMPINFO.EXE (free)
http://beyondlogic.org/consulting/compinfo/compinfo.htm
is another utility.
WMI/ VBS may also be possibilities.
Timo Salmi
09-10-2005, 08:48 PM
Matte wrote:
> Is it possible to get the physical memory from the cmd?
@echo off & setlocal enableextensions
for /f "tokens=4,5" %%a in (
'systeminfo^|find "Total Physical Memory"') do (
set memory_=%%a
set units_=%%b)
echo Memory = %memory_% %units_%
endlocal & goto :EOF
All the best, Timo
--
Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5
Department of Accounting and Business Finance ; University of Vaasa
mailto:ts@uwasa.fi <http://www.uwasa.fi/~ts/> ; FIN-65101, Finland
Useful script files and tricks ftp://garbo.uwasa.fi/pc/link/tscmd.zip
Matte
09-12-2005, 08:35 AM
Thanks for all the tips and help.
"Timo Salmi" <ts@uwasa.fi> skrev i meddelandet
news:u1ywqCktFHA.3752@TK2MSFTNGP09.phx.gbl...
> Matte wrote:
> > Is it possible to get the physical memory from the cmd?
>
> @echo off & setlocal enableextensions
> for /f "tokens=4,5" %%a in (
> 'systeminfo^|find "Total Physical Memory"') do (
> set memory_=%%a
> set units_=%%b)
> echo Memory = %memory_% %units_%
> endlocal & goto :EOF
>
> All the best, Timo
>
> --
> Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5
> Department of Accounting and Business Finance ; University of Vaasa
> mailto:ts@uwasa.fi <http://www.uwasa.fi/~ts/> ; FIN-65101, Finland
> Useful script files and tricks ftp://garbo.uwasa.fi/pc/link/tscmd.zip