I am new with batch scripts. I made my script that allows me to search and backup all pictures on hard drive and copy them to usb flash but I have problem with hidden files. I want that my script can search and copy hidden pictures too. Now it don't copy hidden files or don't see them. Maybe someone will help me.
My script looks like this:
SET FileSizePic=10000
if not exist "%~d0\Backup\allPictures\" mkdir %~d0\Backup\allPictures
for /R "%UserProfile%" %%F in (*.jpg *.jpeg) do if %%~zF GTR %FileSizePic% (copy "%%F" "%~d0\Backup\allPictures\")
if exist D:\ for /R "D:\" %%F in (*.jpg *.jpeg) do if %%~zF GTR %FileSizePic% (copy "%%F" "%~d0\Backup\allPictures\")
pause