@echo off if [%1]==[] goto USAGE if [%2]==[] goto USAGE if not [%3]==[] goto USAGE IF EXIST "\Program Files\Centurion Technologies\Smart Shield\" ( cd "\Program Files\Centurion Technologies\Smart Shield\" ) ELSE ( cd "\Program Files\Centurion Technologies\Smart Shield Education\" ) ctsrgui pstorage -d %1 -s %2 goto END :USAGE echo Usage: echo pstorage.bat [drive letter] [size in MB] echo Example: echo pstorage.bat Q 2048 :END