1.

Solve : If Statement Assistance?

Answer»

Help! Can someone tell me why this isn't working, or help me code it so it will?

IF EXIST C:\new.txt(Copy ZZYes.txt S:\IT)ELSE Copy ZZNo.txt S:\IT

The IF statement doesn't do ANYTHING with either BRANCH? My goal is to look for the "new.txt file and if it is PRESENT copy ZZYes to another drive, if not copy ZZno to the same location.

Thank you!
Just a matter of spacing:

Code: [Select]
IF EXIST C:\new.txt (Copy ZZYes.txt S:\IT) ELSE (Copy ZZNo.txt S:\IT)


HOPE this helps.



Discussion

No Comment Found