2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WindowsServerでOffice系処理をバッググラウンドで動かすときにハマったこと

Posted at

経緯

ExcelファイルをRubyで読み込んでごにょごにょする処理をバックグラウンドで動かそうとしたら、ジョブをキックすると即効でエラー終了してしまった。
調べたところ、どうやらOSユーザーでログインすらできていない。

かなり昔の情報のサルベージです。

対処法

以下のディレクトリを作成することで解決。
C:\Windows\System32\config\systemprofile\Desktop
64bitの場合はSystem32、32bitの場合はSyswow64に読み替えが必要

原因(予想)

Officeで何かしらの処理の自動化を行う場合、仮想デスクトップディレクトリなるものが必要だそうです。
サーバーOSだと、この仮想デスクトップディレクトリが初期状態では作られていないようで、手動で作成する必要があります。

2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?