0
0

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.

タスクスケジューラでログオフ中に実行するタスクがネットワークドライブにアクセスすると失敗する問題の対処法

Last updated at Posted at 2016-03-29

Azure Storageを仮想マシンのネットワークドライブとして割り当てましたが
ドライブ文字を含むパスを記述したタスクでは失敗するケースでハマったので
対処法を残しておきます。

以下はタスクで実行するbat内の記述
Zドライブのtestフォルダ内のcsvファイルをCドライブのtestフォルダに移動するコマンド

-失敗例
move Z:\test\*.csv C:\test\

下記のように汎用名で記述すれば、ログオフ中に実行しても成功しました。
-成功例
move \\myaccountname.file.core.windows.net\mysharename\test\*.csv C:\test\

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?