Hello I have this code called massive.bat:
--- remarks section ---
wait 2 minutes
select directory (if exists) from receiver
move selected directory to results
--- end remarks section ---
FOR /D %%F IN (%BaseDir%\*.*) DO (
TIMEOUT /T 2 /NOBREAK
MOVE /Y !resultDir! %DestDir%
REM DEL !resultDirborra!\*.* /S /F /Q
timeout /T 1 /nobreak
REM rd /s /q !resultDir!
ECHO ... Directory moved: !resultDirrace!
REM explicitly end local changes caused by script (optional)
REM done implicitly at end of script if not specified
There we have directories from one dir "receiver" and are moved to "results" now the question is in the same directory we have 2 files called "secure1" and "secure2" now what is needed to modify in the batch program to move all directories like actually it is working but that ignor the 2 files "secure1" and "secure2" in other words no try to move the "secure1" and "secure2" files leave in the direcotry and not copy anything also to the "results" directory. Of course the variable " !resultDirrace!" must work like it is now giving the name of the directory moved. If sometimes we have directories with sub directories and contents are not moved is there a way if we have one directory with sub directories inside we can move all?