![]() ![]() ![]() The script will be placed inside of the parent folder and be executed. There are 1,500 documents with subfolders named 0,2 and 4 in a parent folder. bat file and will be put into a folder containing files to sort. I used set /a to adjust %limit% that are off due to findstr /n /v.Since there was a request for context, I attach full code: offįor /f "tokens=*" %%a in ('dir /b /a-d ^|findstr /v ".bat. I've tried /move and /xcopy commands but did not see much differences. Is there any faster way to copy(move) files? Since I am dealing with the files that are occupying 20 GB of my disk, the code seems to take forever to move files this way. ![]() This code itself worked fine just as it was designed, but an additional problem was found: speed. So I wrote the following code to group files by moving certain number of files(shown as %limit% and will be 700) to numbered folders(shown as %DirN%) for /f "tokens=1-2 delims=:" %%a in ('dir /b /a-d ^|findstr /n /v ".bat. The problem was, the file explorer takes too much time to load the file list and my whole computer becomes slow. I have a massive number of files in one directory that I need to validate. ![]()
0 Comments
Leave a Reply. |