LoginSignup
3
1

More than 3 years have passed since last update.

【備忘録】64Bit環境において32Bitで提供されているCOMライブラリ(ScriptControlなど)を実行する方法

Last updated at Posted at 2019-10-28

はじめに

スクリプトをWindows環境で実行するときにエラーになって実行できなかった。32Bitで提供されているCOMライブラリを64Bit版で実行していたのが原因。その解消方法の一つとして以下のコマンドで解消できたので備忘録としてそれを記します。

実行コマンド

C:\windows\SysWOW64\CScript.exe 実行したいファイル

なぜエラーになる?

これは64Bit環境にいて実行したときに、そのスクリプト内で32Bitでしか提供されていないCOMライブラリを使っていた。(自分の場合は ScriptControl

SysWOW64とは

32Bit版のdllが格納されている。フォルダ名がややこしい。
Windows on Win64の略だとか。。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1