Code: Select all
:AppendFileLineToFile-args
Code: Select all
if "[%~4]" NEQ "[]" ( shift & GoTo :AppendFileLineToFile-arg )
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%
Code: Select all
@echo off
set str=some text
echo %str%>tmp.tmp &REM space before the & sign!!!
Code: Select all
some text