@echo off FOR /F "usebackq delims=;" %%I IN (`dir C:\Test\DIR1\*.* /s /b`) DO ( IF NOT EXIST "C:\Test\DIR1\%%~nxI" ( CALL :COPYFILE "%%I" ) ELSE ( CALL :RENAME "%%I" ) ) GOTO :EOF :COPYFILE COPY "%1" "C:\Test\DIR2" GOTO :EOF :RENAME FOR /L %%N IN (1, 1, 1000) DO ( IF NOT EXIST "j:\@PCBackup\PST\%~n1%%N%<wbr ></wbr>~x1" ( COPY "%1" "j:\@PCBackup\PST\%~n1%%N%<wbr ></wbr>~x1" GOTO :EOF ) )
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE