Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. zip file

zip file

Scheduled Pinned Locked Moved Database
databasesql-serversysadmintutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tan873
    wrote on last edited by
    #1

    how to zip file with xp_cmdshell in sql server 2005

    S J 2 Replies Last reply
    0
    • T tan873

      how to zip file with xp_cmdshell in sql server 2005

      S Offline
      S Offline
      Simon_Whale
      wrote on last edited by
      #2

      you can't personally I would use a cmd file that runs a winzip commandline application Winzip[^]

      As barmey as a sack of badgers Dude, if I knew what I was doing in life, I'd be rich, retired, dating a supermodel and laughing at the rest of you from the sidelines.

      J 1 Reply Last reply
      0
      • S Simon_Whale

        you can't personally I would use a cmd file that runs a winzip commandline application Winzip[^]

        As barmey as a sack of badgers Dude, if I knew what I was doing in life, I'd be rich, retired, dating a supermodel and laughing at the rest of you from the sidelines.

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        Simon_Whale wrote:

        you can't

        Why not? If it runs an excutable, per your suggestion, then why would it not run what is already in windows?

        1 Reply Last reply
        0
        • T tan873

          how to zip file with xp_cmdshell in sql server 2005

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          tan873 wrote:

          how to zip file with xp_cmdshell in sql server 2005

          I suppose that depends on exactly what you mean. First step how would you do it in a command shell? Windows has the 'compact' command built in. Comand line options are documented in the help for that as well as at the following. http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/compact.mspx?mfr=true[^] If you want to use something besides 'compact' then you must explore the command line options for that tool. Once you know how to do it from a regular shell then you explore the options with the shell in sql server.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups