Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Automating Disk Adminstrator

Keywords:   automating disk administrator

Question:

We have 2 drives, each with 2 partitions.

All SW is on C. ( Drive 0 part 1)

We want to change Drive 0 part 2 ( E: -> X:) and Drive 1 part 2 ( F: -> Y: )

If these are unformatted its fine. If we do it by hand (no Winbatch), even if formatted, its fine.

With Winbatch - partition is shown as in use. There are no shares, no pagefiles, etc, anywhere other than C:

Sample code:

   Run ("Windisk.exe","")
   ;wait till it starts
   timedelay(10)
   
   ; first time around, need to let it create signatures etc.
   ; app doesnt mind extra 'enters'
   SendKeysTo ("Disk Administrator", "{ENTER}{ENTER}{ENTER}{ENTER}")
   ;make sure in volume view mode
   SendKeysTo ("Disk Administrator", "^V")
   ;do first drive - E becomes X
   
   d="E:"
   a=DiskExist(d)
   
   IF a 
      SendKeysTo ("Disk Administrator", "E{ALT}TVX")
      SendKey ( "{ENTER}")
      SendKey ( "Y")
   endif 

Answer:

Add IntControl (43,0,0,0,0) to your script, to disable automatic sendkey 'pacing'. The pacing software tends to appear to 'own' all the drives. You may need to add TimeDelay's to your script to allow sendkey to appear at the correct time.
Article ID:   W13438
Filename:   Automating Disk Administrator.txt