简体   繁体   English

在Windows中移动文件夹覆盖目标文件夹

[英]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种方式:

  1. Either you dont have the Administrator rights. 您没有管理员权限。 If so ask the administrator to grant you rights. 如果是这样,请要求管理员授予您权限。

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

相关问题 Windows move命令未使用bat将匹配文件移动到目标文件夹 - Windows move command not moving the matching file to destination folder using bat 将通配符文件夹结构文件移动到目标文件夹 - Move Wildcard Folder structure files to a destination folder 搜索埋在文件夹中的文件夹,然后将其移动到新目的地 - search for a folder buried in a folder and move the folder to a new destination 如何在Windows中移动文件而不更改目标父文件夹的修改时间(Win32)? - How to move a file in Windows without changing the destination parent folder's modification time (Win32)? 使用父路径Windows移动文件夹 - Move Folder with parent path Windows 将子文件夹中的文件移动到文件夹并重命名Windows提示符 - Move files in subfolders to a folder and rename windows prompt 在VB6中使用Windows复印机移动文件夹 - Move folder using windows copier in VB6 如何使用Windows命令将文件夹结构和文件复制到目标位置? - How to copy the folder structure and files into the destination using a Windows command? XCOPY:源文件夹是否可能包含目标文件夹? - XCOPY: Is it possible that the source folder contains the destination folder? 批处理脚本可将文件从scource移到目标文件夹,以保存30天以上的文件 - Batch script to move file from scource to destination folder for files older than 30 day
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM