Search found 3 matches
- 10 Oct 2014 15:33
- Forum: DOS Batch Forum
- Topic: Batch for flat move of files
- Replies: 4
- Views: 3204
Re: Batch for flat move of files
Here is the final solution for my problem after testing and debugging on the console: @echo off pushd "E:\Data\Collection" && ( for /r "E:\Base" %%a in (*) do ( move "%%a" ) ) FOR /D %%p IN ("E:\Base\Folder 1\*.*") DO ( rmdir "%%p" /s /q ) FO...
- 08 Oct 2014 07:57
- Forum: DOS Batch Forum
- Topic: Batch for flat move of files
- Replies: 4
- Views: 3204
Re: Batch for flat move of files
Hello,
thank you for your answer. I already made a test but without success. No files were moved and no folders were deleted.
How can I debug the code?
thank you for your answer. I already made a test but without success. No files were moved and no folders were deleted.
How can I debug the code?
- 08 Oct 2014 06:46
- Forum: DOS Batch Forum
- Topic: Batch for flat move of files
- Replies: 4
- Views: 3204
Batch for flat move of files
Dear all, I am looking for a batch solution for this: a third party software daily generates files in the following folder structure: E:\Base\Folder 1\2014_10_06\File1.xml E:\Base\Folder 1\2014_10_07\File2.xml E:\Base\Folder 1\2014_10_08\File3.xml E:\Base\Folder 2\2014_10_06\File4.xml E:\Base\Folder...