Latest recipes tagged "cscript" Code RecipesExecuting VBScript without creation of it (Batch) 2013-10-10T16:20:45-07:00greg zakharov <p style="color: grey"> Batch recipe 578329 by <a href="/recipes/users/4184115/">greg zakharov</a> (<a href="/recipes/tags/cscript/">cscript</a>). Revision 2. </p> <p>Have you a wish to launch VBScript without temporary files and right from batch? Maybe you think that it's not possible, but you think wrong. Do you remember my <a href="">post</a> for executing JScript from batch? So, maybe you are familiar with 'MSScriptControl' object which helps to execute JScript code in VBScripts or conversely - VBScript code inside JScripts. Let's take a look.</p> Create .CAB or .ZIP with batch (Batch) 2012-11-01T18:33:32-07:00greg zakharov <p style="color: grey"> Batch recipe 578315 by <a href="/recipes/users/4184115/">greg zakharov</a> (<a href="/recipes/tags/cab/">cab</a>, <a href="/recipes/tags/cscript/">cscript</a>, <a href="/recipes/tags/zip/">zip</a>). </p> <p>Naturally, commnad language hasn't native methods to create archives but there is no obstacle to use JScript inside a batch. By the way, this do not need creation temporary files. OK, how does it work? Maybe you heard about conditional compilation in JScript, so you must be familiar with this trick. Take a look at this:</p>