Author Topic: System information  (Read 2015 times)

0 Members and 2 Guests are viewing this topic.

mparks

  • $upporter
  • Contributor
  • *****
  • Posts: 93
  • Karma: 0
    • View Profile
System information
« on: December 22, 2012, 01:19:31 AM »
Is there a way to have Vox do a system check on my computer,
for example, monitor my hardware such as how much space is left on the hard drive or  Check CPU%  and Memory usage.

What I would like to do is to have vox do a system check when it starts up or I can trigger one manually.
I want to say "Vox, how much memory is in use" or "how much space is left on drive C."

Is any of this possible?

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: System information
« Reply #1 on: December 22, 2012, 06:25:46 AM »
Is there a way to have Vox do a system check on my computer,
for example, monitor my hardware such as how much space is left on the hard drive or  Check CPU%  and Memory usage.

What I would like to do is to have vox do a system check when it starts up or I can trigger one manually.
I want to say "Vox, how much memory is in use" or "how much space is left on drive C."

Is any of this possible?
Hi mparks, it is christmas and here my gift  ;)  :xmasgrin

this VBsrcipt and VC command check your first drive (normaly C:) and let you know how much memory is free in gigabyte and how much it is in percent of you total space on drive.
you can change the drive by edit the VBscript in notpad (if you want change to drive D - change all "drive1" text with drive2 for E with drive3 ...). You can also change the spoken text in the last line of the script.

save the driveMEM.vbs in the VC mainfolder and import the "CheckDriveCommand.xml" in your commandtree.

This script works only for drives with less than 1000 GB per partition

Xmas greetings  ::antlers
Kalle

PS: You can insert more than one drive in the VBscript, how this works, feel free to ask me  ;)
« Last Edit: December 22, 2012, 09:06:34 AM by Kalle »
***********  get excited and make things  **********

mparks

  • $upporter
  • Contributor
  • *****
  • Posts: 93
  • Karma: 0
    • View Profile
Re: System information
« Reply #2 on: December 22, 2012, 08:29:13 PM »
YOU ROCK!!!!!

Thank you so much, I am going to try this out tonight.

Happy Christmas to you and your family. ::wiggle :xmasgrin

mparks

  • $upporter
  • Contributor
  • *****
  • Posts: 93
  • Karma: 0
    • View Profile
Re: System information
« Reply #3 on: December 23, 2012, 04:33:45 AM »
Thanks Kalle, this works perfectly, I greatly appreciate your help.

I have 9 drives. 1 main drive for windows, 3 for my work,  3 wake up each night and does a back up of the first set. Then finally I have 2 removables that do a weekly backup then gets stored away.
Crazy I know.  ::confused

So what i would like to do next is to add some more options to this script. I want to check more than one drive, and tell vox to  "check drive c" or "check drive d" etc.. and then also tell Vox " Check all drives "

I have modified what you gave me so far but I am not sure how to do the above.

Do I need to do something like this
dim fs, drive1, strFreeSpace1, strFreeSpaceRounded1, drive2, strFreeSpace2, strFreeSpaceRounded2
declare all then duplicate everything from drive1 to drive9
or can I do this with [ If statements ] and loops.

Thanks again.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: System information
« Reply #4 on: December 23, 2012, 06:40:05 AM »
Thanks Kalle, this works perfectly, I greatly appreciate your help.

I have 9 drives. 1 main drive for windows, 3 for my work,  3 wake up each night and does a back up of the first set. Then finally I have 2 removables that do a weekly backup then gets stored away.
Crazy I know.  ::confused

So what i would like to do next is to add some more options to this script. I want to check more than one drive, and tell vox to  "check drive c" or "check drive d" etc.. and then also tell Vox " Check all drives "

I have modified what you gave me so far but I am not sure how to do the above.

Do I need to do something like this
dim fs, drive1, strFreeSpace1, strFreeSpaceRounded1, drive2, strFreeSpace2, strFreeSpaceRounded2
declare all then duplicate everything from drive1 to drive9
or can I do this with [ If statements ] and loops.

Thanks again.
No problem  ;) You are on a good way - see the attach VBscript how it works with more drives (I use in the example "drive8" "L:" because all my other drives are temporary). It is important that you write the correct drive letter too. No change in the "CheckDriveCommand.xml" necessary.
You can use this VBscript for "check all drives".
If you want to check a specific drive use the script in my previous post, change all listings which have a 1 in 2 (example: drive1 in drive2, strTotalSpace1 in strTotalSpace2 and so on ...) and don't forget to change the line which create the file name "drive.txt" (for example "driveC.txt" - "driveD.txt" ...). Create for each drive a new VBscript and save it in the VC mainfolder or create a folder for the scripts and txt-files (If you create a specific folder you must change the path in the  VC Command).
As next duplicate the VC Command and customize it.
If you have any question, feel free to ask.

UPDATE

I've create VBscripts for your first four drives (C,D,E,F) so if you need more drives you have a example. I've also edit the VC command, so it is all ready to use  ;)
Unzip the "DriveStates.zip" in your VC folder and insert in your command tree the "CheckDriveCommandNew.xml"
(I'm sure there is a way to use "if-then-else" but I'm not a programmer)

I hope it helps  ::xmasbounce

Kalle
« Last Edit: December 23, 2012, 05:58:27 PM by Kalle »
***********  get excited and make things  **********

mparks

  • $upporter
  • Contributor
  • *****
  • Posts: 93
  • Karma: 0
    • View Profile
Re: System information
« Reply #5 on: December 24, 2012, 08:28:40 PM »
Thanks again Kalle, it works perfectly, I have modified it for all of my drives.

Thank you very much.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: System information
« Reply #6 on: December 25, 2012, 02:36:44 AM »
Thanks again Kalle, it works perfectly, I have modified it for all of my drives.

Thank you very much.
you welcome  ;)
***********  get excited and make things  **********