How to move all files except one from the parent folder into a new child folder using the windows command?
I need to move all files except one file named index.html from the parent folder into a new child folder.
I have tried the below command but it is not working.
move parent_folder ./parent_folder/child_folder
Please refer below
Current Folder Structure
Required Folder Structure
I have achieved the above requirement using ' robocopy ' command.
Command
robocopy parent_folder parent_folder/child_folder/ *.* /E /XD child_folder /XF index.html /move
Referred URL - Windows batch command to move all folders in a directory with exceptions
Screenshot #1
Screenshot #2
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.