I'm new to BC and it's extensive feature list can be a bit, um, overwhelming. But that's a good thing
I need to figure out a way to perform 8 compares automatically.
In short, I have a set of batch files and scripts that create up to 14 USB Thumb Drives with corporate windows image installers. My tech's use these to image machines.
The automated creation of the keys is all set and I've created 1000's of drives without issue.
The problem comes with verification/quality control which is a pain in the arse to do in cmd line.
So I purchased BC.
I can work it fine to verify each key one at a time. Just compare folders, source on the left, usb drive on the right, and away it goes.
But what I want it to do is check all of the drives automatically (via commands added to my batch file) after they are created.
Now, I know I can type "bcompare C:\GLSource e:" and it will compare my source folder to the drive in E: The problem is it sits there with the open window when done.
What I need it to do is run the compare and close. I'll then examine the errorlevel to verify that drive is ok.
In it's simplest form, the batch command would look something like this:
bcompare C:\GLSource e:
<code to check errorlevel>
bcompare C:\GLSource f:
<code to check errorlevel>
bcompare C:\GLSource g:
<code to check errorlevel>
bcompare C:\GLSource h:
<code to check errorlevel>
bcompare C:\GLSource i:
<code to check errorlevel>
bcompare C:\GLSource j:
<code to check errorlevel>
bcompare C:\GLSource k:
<code to check errorlevel>
bcompare C:\GLSource l:
<code to check errorlevel>
bcompare C:\GLSource l:
<code to check errorlevel>
bcompare C:\GLSource m:
<code to check errorlevel>
bcompare C:\GLSource n:
<code to check errorlevel>
bcompare C:\GLSource o:
<code to check errorlevel>
bcompare C:\GLSource p:
<code to check errorlevel>
bcompare C:\GLSource q:
<code to check errorlevel>
bcompare C:\GLSource r:
<code to check errorlevel>
"<code to check errorlevel>" is where I would check the returned errorlevel after each run of the program and if it's not 0 (which is all I care about) notify me in a manner I'll work out.
How can I accomplish this? I can't find a switch to close the program after each run.
If there is a much simpler way to do this, I'm all ears !!!
Thanks
I need to figure out a way to perform 8 compares automatically.
In short, I have a set of batch files and scripts that create up to 14 USB Thumb Drives with corporate windows image installers. My tech's use these to image machines.
The automated creation of the keys is all set and I've created 1000's of drives without issue.
The problem comes with verification/quality control which is a pain in the arse to do in cmd line.
So I purchased BC.
I can work it fine to verify each key one at a time. Just compare folders, source on the left, usb drive on the right, and away it goes.
But what I want it to do is check all of the drives automatically (via commands added to my batch file) after they are created.
Now, I know I can type "bcompare C:\GLSource e:" and it will compare my source folder to the drive in E: The problem is it sits there with the open window when done.
What I need it to do is run the compare and close. I'll then examine the errorlevel to verify that drive is ok.
In it's simplest form, the batch command would look something like this:
bcompare C:\GLSource e:
<code to check errorlevel>
bcompare C:\GLSource f:
<code to check errorlevel>
bcompare C:\GLSource g:
<code to check errorlevel>
bcompare C:\GLSource h:
<code to check errorlevel>
bcompare C:\GLSource i:
<code to check errorlevel>
bcompare C:\GLSource j:
<code to check errorlevel>
bcompare C:\GLSource k:
<code to check errorlevel>
bcompare C:\GLSource l:
<code to check errorlevel>
bcompare C:\GLSource l:
<code to check errorlevel>
bcompare C:\GLSource m:
<code to check errorlevel>
bcompare C:\GLSource n:
<code to check errorlevel>
bcompare C:\GLSource o:
<code to check errorlevel>
bcompare C:\GLSource p:
<code to check errorlevel>
bcompare C:\GLSource q:
<code to check errorlevel>
bcompare C:\GLSource r:
<code to check errorlevel>
"<code to check errorlevel>" is where I would check the returned errorlevel after each run of the program and if it's not 0 (which is all I care about) notify me in a manner I'll work out.
How can I accomplish this? I can't find a switch to close the program after each run.
If there is a much simpler way to do this, I'm all ears !!!
Thanks
Comment