Jump to content

VBS objshell.run ( something.exe > log.tmp,0,false) doesn't work ideas


Recommended Posts


I'm in the process of re-writing the switchblade to vbs.

I'm at the point where firepassword is run. By design it only writes to StdOut (the screen). In a batch file you simply pipe the StdOut to a file >> %log%  <blah blah blah>

Well in vbs there's always more then one way to do things and I can't get either to do it the way I want.

I can call

set oExec = objshell.exec(firepassword.exe)

while yadda



and get the output that way which is all well and good but you can NOT hide the cmd window that .exec calls. Although it's only up for a brief second it's long enough to be noticed.

So, the other way one would think would be

objShell.run "  c:FirePassword.exe > C:tmp.log",0 , False 

Only problem is that doesn't work. tmp.log is never created and I don't know why.

Any ideas? I trying to keep everything contained to one script and I don't really want to call a batch file to call firepassword.

Are they're any alternatives to firepassword?


objShell.run "c:nircmd execmd  c:FirePassword.exe >" & "C:tmp.log",0 , False 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...