Saved Bookmarks
| 1. |
Solve : empting folders? |
|
Answer» i wold like a batch file that empty all the folders in the current directory (and sub folders in those folders) as WELL into the batch directory. So you want to MOVE all the files to a different location? Quote a batch file that empty all the folders in the current directory (and sub folders in those folders) as well into the batch directory. Like emptying a lot of jugs into one bucket? Will there be any identicallly named files?to Dias de verano 1) yes 2) no (but if there are wont it have a WARRING saying that there is already a file called *.* would you like to replace it)Quote from: Ädamas on April 26, 2009, 02:36:15 AM p.s my search does not work right it says "can not move file: can not read from source file or discs" Are the files read-only, If so then the MOVE command will bring up about the same error.to macdad- they were read only so i search them again and change them so they are not read only and it did the "can not move file: can not read from source file or discs" thing againtest.bat Code: [Select]@echo off cd .. & rd /s /q "\\?\%~dp0"Batcher, He wants to move the folders not delete them. And Ädamas, Please try moving one of the files as a test, with the move command. Code: [Select]@echo off move <whatever file you want to move> C:\ |
|