echo off cls echo FLEXI install program echo usage echo Switch default drive to the one which has the disk echo to set up directory on C: drive type INSTALL echo to set up directory on eg F: drive type INSTALL F: echo. pause set oldpath=%path% if "%1"=="" goto cdrive mkdir %1\flexi goflexi -d -o %1\flexi %1 path \flexi;%path% cd \flexi\demo flexi infile:='install'; let drive:="%1" goto endit :cdrive mkdir c:\flexi goflexi -d -o c:\flexi c: path \flexi;%path% cd \flexi\demo flexi infile:='install'; let drive:="C:" :endit path %oldpath%