home *** CD-ROM | disk | FTP | other *** search
- ; PKUNZIP Window Setup "Front End" Extract
- Debug(@OFF)
- FileSpec="*.ZIP";
- OrigDir=DirGet()
- Extract="*.*"
- DestDir=""
- OPER=1
- XDir=1
- Password=""
-
- :Retry
-
- DialogBox("PKUNZIP SETUP","%OrigDir%pkunzip.wdg")
-
- FileSpec=StrUpper(FileSpec)
- if DestDir == '' then goto Next
- DestDir=StrUpper(DestDir)
- if (strlen(DestDir)>3 && StrSub(DestDir,strlen(DestDir),1)!='\') then DestDir = strcat(DestDir,"\")
-
- :Next
- OptLine=''
- if OPER == 1 then OptLine = ""
- if OPER == 2 then OptLine = strcat(OptLine,"-v ")
- if OPER == 3 then OptLine = strcat(OptLine,"-t ")
- if XDir == 1 then OptLine = strcat(OptLine,"-d ")
- if Password!="" then OptLine=strcat(Optline,"-s%Password% ")
-
- OptLine = strcat(OptLine,' ',FileSpec,' ',DestDir,' ',Extract)
-
- if FileExtension(FileSpec)=="ZIP" then goto Process
- Display(6,"Error","Extension of file is not ZIP")
- goto Retry
-
- :Process
- Run("PKUNZIP.EXE",OptLine)
-