Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Documentation: Errors in CSV Example

Aug
47
2
There are two small errors in the CSV example on web page An Introduction to the TCC Command Language and Batch Files pertaining to the statement:

set email=%@field[",",3,%record] echo %email

(1) To pull out the email from the CSV data just above the code, you need to reference field 2, not field 3.

(2) There are two statements on a single line here, which doesn't work. The %+ statement separator is missing.

Thus, the line should be:

set email=%@field[",",2,%record] %+ echo %email

This makes the example -- which demonstrates a phenomenally powerful TCC capability -- work just fine.

Jesse Heines
 
Last edited:
Back
Top