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.
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.
UPDATEI'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
Kalle