Get System Information

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Boxxxed
Junior Coder
Posts: 26
Joined: Fri Mar 19, 2010 7:20 pm

Get System Information

Post by Boxxxed » Tue Mar 23, 2010 7:21 am

Is there a command that gets main system information, such as RAM, CPU, OS etc?

idiot
Macro Veteran
Posts: 152
Joined: Thu Mar 01, 2007 9:21 am

Post by idiot » Mon Apr 12, 2010 1:44 am

executefile use this command to open your system information file on your computer and that would show all the things your asking about maybe that is what your looking for goodluck hope this helps
if idiots rule the world then im the king!!!!
i want a free t-shirt give me all of your rep!!!
please give me pro version of macro scheduler and appnavigator!!!

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

Use Systeminfo command to get computer specs

Post by adroege » Tue Apr 27, 2010 10:23 pm

This is what you are looking for:

Code: Select all

Let>RP_WAIT=1
Run>systeminfo  >c:\mytemp.txt
ReadFile>c:\mytemp.txt,strFileContents
MessageModal>strFileContents

Have Fun!

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Thu Apr 29, 2010 7:14 am

When I run the above macro in MS 11 or 12 on XP or in MS 12 on Win 7, it displays: ##NOFILE##

This is because the file is not being created.

However, if I open a DOS window and actually type the following at the command prompt, the file is created no problem:

systeminfo >c:\mytemp.txt

Is there some sort of syntax error with the following line?

Run>systeminfo >c:\mytemp.txt

Perhaps some missing quotes?
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Apr 29, 2010 8:19 am

You need to do:

Code: Select all

Let>RP_WAIT=1
Run>cmd.exe /c systeminfo  >%TEMP_DIR%\sysinfo.txt
ReadFile>%TEMP_DIR%\sysinfo.txt,strFileContents
MessageModal>strFileContents
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Thu Apr 29, 2010 8:57 pm

Hi Marcus,

Thanks for that, working fine now.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts