tags:

views:

29

answers:

0

Possible Duplicate:
How do I test if a file is a directory in a Batch script?

I would like to write a batch file that treats files and directories differently, e.g.

if TEST %1 (
  echo dir %1
) else (
  echo file %1
)

Is there anything I can insert for TEST?