1.

Solve : To find command 'date' to using in batch file?

Answer»

I make a batch file to set text change follow with the day now.

My command is example like this

if 'day'='sun' then goto sunday
if 'day'='mon' then goto monday

:sunday
Today is Sunday
goto end

:monday
Today is Monday
goto end


'day' is command for variable and 'sun' is RESULT from command 'day' refer to that day.

anybody can help me what command can be use for 'day' and get result from command 'day' in batch file. i wrote a program once in clipper to do this but you have the problem of leap years!

:-/i tried something else


echo. |date >date
copy log+date

you need to make an empty text file called log
  (no extension)

the bat file will contain the day  in format Cll
(capital, LOWER,lower)
you will need a STRING search command LOOP as in your question
you will need to have a dummy log file which will contain
 no bytes and copy that file to log to insure that it is blank
for the NEXT time



Discussion

No Comment Found