I'm trying to convert a batch script to XYplorer's .xys format.
%target_temp% was defined (%temp%\<datea dd.mm.yyyy_hh-mm-ss>
as well as the target_1 & target_2 variables.
I've done the first part of converting successfully but I'm stuck on the second part:
Code: Select all
set counter=0
for /f %%i in ('dir %target_temp% /ad /od /b') do (
set /a counter+=1
rmdir /s /q "%target_1%\%%i"
rmdir /s /q "%target_2%\%%i"
xcopy "%target_temp%\%%i" "%target_1%\%%i" /s /e /i
xcopy "%target_temp%\%%i" "%target_2%\%%i" /s /e /i
)
REM Clean up
if %counter% gtr 0 (
rd "%target_temp%" /s /q
del %archiv%
)delete corresponding folders (with same names) in both of the target_x dirs. After that these folders
will be copied into the target dirs.
After this procedure it'll delete the temp folder + the archive.zip as well.
Any help is appreciated
Regards,
Highend
XYplorer Beta Club