[thelist] using wscript.shell to run commands (again)

Joel D Canfield joel at spinhead.com
Mon Jun 21 17:45:00 CDT 2004

> Try two %% around compspec.
> e.g.  %%compspec%%

throws error 80070002 on this line:

  intReturn = wshell.run("%%comspec%% /k cd\ & dir *.*", 1, False)

I've changed the perms on the folder to force basic authentication, just
so I'm certain how I'm logging in, and it's still giving the error. Is
this really perms error?

I'm assuming, though, that the 'run' portion should be literally the
same as what you'd enter in the 'run' dialog box. In that case, it's
only single '%' characters.


More information about the thelist mailing list