Code: Select all
@echo off
:loop
echo Attempting Time Sync...
w32tm /resync | find /i "The command completed successfully." >nul || (echo Sync Not Working, Retrying...&goto loop)
echo Success!!!!!
pause
exit
Saso
Code: Select all
@echo off
:loop
echo Attempting Time Sync...
w32tm /resync | find /i "The command completed successfully." >nul || (echo Sync Not Working, Retrying...&goto loop)
echo Success!!!!!
pause
exit
Code: Select all
:AppendFileLineToFile-args
Code: Select all
if "[%~4]" NEQ "[]" ( shift & GoTo :AppendFileLineToFile-arg )
Code: Select all
Rem (if command errors) || (exec this command)
Code: Select all
copy file.txt folder\file1.txt
copy file.txt folder\file2.txt
copy file.txt folder\file3.txt
copy file.txt folder\file4.txt
Code: Select all
If "%Drive%"==C:
Code: Select all
If "%Drive%"=="C:"
Code: Select all
34567891) was unexpected at this time.
Code: Select all
echo>file5.txt %field1%;%field2%;%field3%