iis - CScript on x64 Win2003 Server - Cannot find script file -


sanity check, please. solution i'm hearing sounds ill-conceived, may one.

from within .hta on .vbs app i'm running

cscript c:\windows\system32\iisapp.vbs 

it works great cli , fails within little app. because i'm on 64 bit box, , calls c:\windows\system32 redirected c:\windows\syswow64, iisapp.vbs script not reside. moving script on there causes microsoft.cmdlib complain needing registered. of understandable , understood.

the recommended solution on other forums copy , regsvr32 iisschlp.wsc , cmdlib.wsc syswow64.

that works, seems bit heavy-handed. might there unforeseen side-effects of solution? there not more direct solution reregistering these files on wow64-land?

thanks.

looks need access 64-bit "system32" directory on 64-bit box 32-bit program. easiest way use virtual directory "sysnative" instead of system32 this:

cscript c:\windows\sysnative\iisapp.vbs 

alternatively start 64-bit version of cscript:

%windir%\sysnative\cscript c:\windows\system32\iisapp.vbs 

more info on sysnative can found in blog article.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -