Since you're only showing us part of yor batch, it's difficult to tell, but
if %time%==180(
is syntactically incorrect ton two counts.
First, there must be a space between the 180
and the (
Second, time
is a magic variable
which returns the current system time in the format currently selected by the user. In my case, this is hh:mm:ss:ms - which is most unlikely to match 180
. Once you set a user environment variable named time
, the user variable overrides the magic variable
. (this is nore of a by-the-by, but really not a good idea generally)
likely fixing these would cure your problem - and inserting a pause
command strategically would allow you to see error messages (like just after the if
line ... of course, you have to be able to guess where strategically is, and that comes with practice...)