[英]move folder in windows overwriting the destination folder
I am trying to move a folder to a location where this folder already exists. 我正在尝试将文件夹移动到该文件夹已经存在的位置。 So basically I want to overwriting it without prompting yes or no.
所以基本上我想覆盖它而不提示是或否。
Below is the directory structure- 下面是目录结构-
C:\TEMP\MOVE_TEST
├───dest
│ └───test_folder
└───test_folder
The move command is showing Access is denied,
while executing below command- move命令显示
Access is denied,
同时在下面的命令中执行-
c:\>move /y C:\temp\move_test\test_folder C:\temp\move_test\dest
Access is denied.
The command move /y
is overwriting files successfully but in case of folder, it is giving Access is denied
message. 命令
move /y
成功覆盖了文件,但是在文件夹的情况下,它给出了Access is denied
消息。
2 ways: 2种方式:
Either you dont have the Administrator rights. 您没有管理员权限。 If so ask the administrator to grant you rights.
如果是这样,请要求管理员授予您权限。
You would have opened command prompt only through "cmd" from start menu. 您只能通过开始菜单中的“ cmd”打开命令提示符。 try opening cmd with ctrl+shift+Enter... that will open cmd in admin mode and then try moving the files...
尝试使用ctrl + shift + Enter打开cmd,这将在admin模式下打开cmd,然后尝试移动文件...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.