@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\" ) IF [%2]==[0] ( ctsrgui pstorage -d %1 -unmount ) ELSE ( ctsrgui pstorage -d %1 -mount ) goto END :USAGE echo Usage: echo mountpstorage.bat [drive letter] [number] echo . echo Example - mount the persistent storage (Q drive): echo mountpstorage.bat Q 1 echo Example - unmount the persistent storage (Q drive): echo mountpstorage.bat Q 0 :END