@DEVICE

<< Click to Display Table of Contents >>

Navigation:  TCC > Variables & Functions > Functions >

@DEVICE

@DEVICE[name] : Returns 1 if the specified name is a character device (such as a serial port), or 0 if not. A trailing : is optional except for the pseudo-device CLIP: (to differentiate it from a possible filename named "clip").

 

Examples:

 

echo %@device[%comspec]

0

 

echo %@device[lpt1]

1

 

echo %@device[com1]

1

 

echo %@device[com5]

0

 

echo %@device[clip]

0

 

echo %@device[clip:]

1