New
#11
Ok OK, i almost managed to work ;o
here is how it looks like now:
the only issue is that every time when finds folder, now it keeps ask me or i do wanna delete this folder Y/N?Code:@echo off xcopy /Y %userprofile%\Desktop\*.* %userprofile%\DesktopFiles\ /s /q /f c: cd\ cd "%userprofile%\Desktop" dir *.* /b -o:d | find /v "." > \dirs.txt for /f "tokens=*" %%a in (\dirs.txt) do call :DelFiles "%%a" del \dirs.txt exit /b :DelFiles %1 set Flag=0 if %1=="All Users" set Flag=1 if %1=="Administrator" set Flag=1 if %1=="CurentUser" set Flag=1 if "%Flag%"=="0" ( cd %1 attrib *.* -r /s cd.. rem change rd %1 /s /q rem for no confirmation rd %1 /s ) del %userprofile%\Desktop\*.* /s /q /f
please tell me what to correct in this code to stop it ask me for Y/N and just pick Y automatically :)