[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: [sqr-users] How To Unzip files using Sqr



Hi,

 let $Zip_Exe_Path = '\C$\Progra~1\WinZip\WINZIP32.EXE'

let $syscmd = 'cmd /c "c:"'

 CALL SYSTEM USING $syscmd #stat WAIT

 let $syscmd = $Zip_Exe_Path||' -min -a -en "'||$Zipfilepath_Path||'.zip"
"'||filetobezipped_path||'.dat"'

CALL SYSTEM USING $syscmd #stat WAIT

   if #stat = 0
 show 'Zip successful...'
 else
      let $Zip_Error = 'Error ' || to_char(#stat) || ' attempting  Zip...'
      show $Zip_Error
   end-if

-------------------

U can try this code


On 9/7/07, kuldeep vaidya <kuldeep_vaidya@yahoo.com> wrote:
>
> Hi,
> I am trying to unzip files using sqr. I have following code in my sqr
>
> #define UnZipCmd  'e:\program files\winzip\wzunzip -o'
> let $command = {UnZipCmd}
>      let $parms   = $ZipFile || ' ' || $PayFile
> let $commandline = $command || ' ' || $parms
>   call system using $commandline #sstatus wait
>
> where $ZipFile  is the path where my zip file is present and $PayFile is
> the path where I want to unzip the files.
>
> Is wzunzip  is exe file which I need to unzip the file because I can not
> see this file in my winzip folder i.e in 'e:\program files\winzip'
>
> Please let me if you have any suggestions on it.
>
> Thanks a Lot
> Kuldeep
>
>
> ---------------------------------
> Ready for the edge of your seat? Check out tonight's top picks on Yahoo!
> TV.
>
> _______________________________________________
> sqr-users mailing list
> sqr-users@sqrug.org
> http://www.sqrug.org/mailman/listinfo/sqr-users
>

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users