Shell.Run
-
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
-
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
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)
-
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)
-
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
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[^]