Dislplay PC - CPU - RAM With DOS via Bat file- Help Needed

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
kevinbarker
Posts: 7
Joined: 06 Mar 2012 08:02

Dislplay PC - CPU - RAM With DOS via Bat file- Help Needed

#1 Post by kevinbarker » 06 Mar 2012 08:20

I have a script to copy files from my nas to a local machine, and install office 2007.

Before the script runs, i would like it to display the CPU speed and RAM.Then if the user wants to run the script press continue, or No for ( run the Script later )
the is on xp and win 7, thanks for any help

@echo off

net use Z: /d /y
net use Z: \\NAS ADDRESS
xcopy Z:\software /s c:\software\ /y


c:\software\Office_2007\setup.exe /adminfile c:\software\Office_2007\full.msp

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: Dislplay PC - CPU - RAM With DOS via Bat file- Help Need

#2 Post by Squashman » 06 Mar 2012 11:19

Code: Select all

systeminfo | findstr /C:"Total Physical Memory" /C:"Processor(s)" /C:"Mhz"
:Menu
set /p answer=Do you wish to continue? :
IF /I "%answer%=="N" GOTO :EOF
IF /I "%answer%=="Y" GOTO :script
GOTO :Menu
:script
net use Z: /d /y
net use Z: \\NAS ADDRESS
xcopy Z:\software /s c:\software\ /y

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Dislplay PC - CPU - RAM With DOS via Bat file- Help Need

#3 Post by foxidrive » 06 Mar 2012 12:12

Small changes to the menu routine here.

Code: Select all

:Menu
set "answer="
set /p "answer=Do you wish to continue? [Y/N] :"
IF /I "%answer%"=="N" GOTO :EOF
IF /I "%answer%"=="Y" GOTO :script
GOTO :Menu
:script

Post Reply