echo off cls if %1.==. goto NOPARM %1 if exist %1\work\$imps$.* goto WORKOK echo \WORK\ is being created as a new subdirectory on your hard drive. echo . pause cd\ md work :WORKOK cd \work %2\tools\qt goto DONE :NOPARM if not exist d:\tools\qt.exe goto ERROR c: d:\tools\qt goto DONE :ERROR echo Specify the drive letters for your hard disk and your CD-ROM. echo For example, QT C: D: :DONE