Code: Select all
@echo off &setlocal
set "test=test.txt"
:loop
:: wait 2 seconds
ping -n 3 localhost>nul
:: check if the file is ready, loop if not
copy /b %test%+nul %test% >nul 2>&1||goto :loop
endlocal
Code: Select all
@echo off &setlocal
set "test=test.txt"
:loop
:: wait 2 seconds
ping -n 3 localhost>nul
:: check if the file is ready, loop if not
copy /b %test%+nul %test% >nul 2>&1||goto :loop
endlocal
Code: Select all
findstr "ORA-[0-9]" alert_OCEAN_test.log
If ERRORLEVEL 1 echo NO ERROR FOUND>>%output%
Code: Select all
@echo off &setlocal
for /f "delims=" %%i in (tmp1.txt) do echo %%~dpi %%~nxi %%~atzi KB
endlocal
Code: Select all
for /f "delims=" %i in (tmp1.txt) do @echo %~dpi %~nxi %~atzi KB
Code: Select all
attrib -r "C:\Users\Sr. Test\Desktop\Berichts/Pflegedokumentation geschützt.doc"