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?

Win11でbatファイルが管理者権限でも実行できない

Posted at

batが実行できない

Windows11で
copyコマンドが入っているbatファイルをダブルクリックで実行しようとした時
copyのパス内ディレクトリ名に 日本語が含まれている とコマンドが実行されない


こちらは通らないが
copy_fail.bat
@echo off
copy "\\HOSTNAME_XXX\Users\USER_XXX\Documents\tasks違うよ\task.txt" "C:\Users\USER_YYY\Documents\tasks\" /Y

こちらは通る

copy_sucs.bat
@echo off
copy "\\HOSTNAME_XXX\Users\USER_XXX\Documents\tasks_differ\task.txt" "C:\Users\USER_YYY\Documents\tasks\" /Y

管理者権限は関係ないみたい

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?