if not file('c:\windows\system\comctl32.ocx') file1=drvone+'beta_costdata\costdata\comctl32.ocx' file2=drvone+'beta_costdata\costdata\msacal70.ocx' run /n c:\windows\system\regsvr32 &file1 run /n c:\windows\system\regsvr32 &file2 endifi know i saw in the thread there is better way to install a ocx. or is the above method is the only way to register ocx.