Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2004
    Posts
    12

    Unanswered: use xp_cmdshell to call winzip with the command

    Hello,
    how may use xp_cmdshell to call winzip with the command,
    i wrote this but it doesn't work ;

    declare @cmd varchar(2000)
    select @cmd = 'c:\program_files\winzip\Wzunzip.exe c:\Attatchments\TEST_PJ.zip c:\Attatchments\TEST_PJ.zip'
    exec master..xp_cmdshell @cmd

  2. #2
    Join Date
    Feb 2004
    Location
    Rhode Island
    Posts
    69

    Re: use xp_cmdshell to call winzip with the command

    Originally posted by aoru
    Hello,
    how may use xp_cmdshell to call winzip with the command,
    i wrote this but it doesn't work ;

    declare @cmd varchar(2000)
    select @cmd = 'c:\program_files\winzip\Wzunzip.exe c:\Attatchments\TEST_PJ.zip c:\Attatchments\TEST_PJ.zip'
    exec master..xp_cmdshell @cmd
    Can you try with double quote around the file name
    declare @cmd varchar(2000)
    select @cmd = 'c:\program_files\winzip\Wzunzip.exe "c:\Attatchments\TEST_PJ.zip"

    exec master..xp_cmdshell @cmd

  3. #3
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    What is Wzunzip.exe

    does it have a GUI?
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

  4. #4
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •