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. General Programming
  3. Visual Basic
  4. Shell.Run

Shell.Run

Scheduled Pinned Locked Moved Visual Basic
helplinuxtoolsquestion
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.
  • M Offline
    M Offline
    mihai123
    wrote on last edited by
    #1

    My question is related with VBScript. But i didn't saw any topic with that one. I have a small problem with a script. Used this command : ret=objShell.run (strCommand ,0 ,true). Where strCommand runs 7-zip to do an archive. The problem appears if some files are in use by another process. 7-zip return and error code and the program stops there. I want the program to continue the execution because even with this error. If I put the last parameter false the problem is that that the program doesn't wait for the archive to be done. I looked for some hours on the net but didn't find anything so I'm a little desperate. I really appreciate any help, Thanks

    S T 2 Replies Last reply
    0
    • M mihai123

      My question is related with VBScript. But i didn't saw any topic with that one. I have a small problem with a script. Used this command : ret=objShell.run (strCommand ,0 ,true). Where strCommand runs 7-zip to do an archive. The problem appears if some files are in use by another process. 7-zip return and error code and the program stops there. I want the program to continue the execution because even with this error. If I put the last parameter false the problem is that that the program doesn't wait for the archive to be done. I looked for some hours on the net but didn't find anything so I'm a little desperate. I really appreciate any help, Thanks

      S Offline
      S Offline
      Steven J Jowett
      wrote on last edited by
      #2

      The problem is with 7-zip rather than the VBScript. check the parameters that are available for 7-zip. I suspect that 7-zip has encountered an open file and aborted, rather than continue on to the next file to compress.

      Steve Jowett ------------------------- It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)

      M 1 Reply Last reply
      0
      • S Steven J Jowett

        The problem is with 7-zip rather than the VBScript. check the parameters that are available for 7-zip. I suspect that 7-zip has encountered an open file and aborted, rather than continue on to the next file to compress.

        Steve Jowett ------------------------- It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)

        M Offline
        M Offline
        mihai123
        wrote on last edited by
        #3

        no, he continue to compress the files and when he finish he throw this warning. But the shell.run function see that the return code isn't 0 and suspend the program util I close the windows that 7-zip opened.

        1 Reply Last reply
        0
        • M mihai123

          My question is related with VBScript. But i didn't saw any topic with that one. I have a small problem with a script. Used this command : ret=objShell.run (strCommand ,0 ,true). Where strCommand runs 7-zip to do an archive. The problem appears if some files are in use by another process. 7-zip return and error code and the program stops there. I want the program to continue the execution because even with this error. If I put the last parameter false the problem is that that the program doesn't wait for the archive to be done. I looked for some hours on the net but didn't find anything so I'm a little desperate. I really appreciate any help, Thanks

          T Offline
          T Offline
          Thomas Stockwell
          wrote on last edited by
          #4

          Please do not post questions in multiple forums when it is not necessary.Link[^]

          Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios[^]

          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