Website for machine experts
Using environmental variables with TNCcmd
NC FAQ1048
Question:
Can I use environmental variables with TNCcmd?
Answer:
Environmental variables are often used in batch processing in order to parameterize general tasks. The environmental variables are therefore evaluated by TNCcmd in the command file, in dialog mode and when the command line is transferred, if the command was entered within quotation marks together with the parameters.
The PUTENV command is used to define additional environmental variables while the command file is being executed.
Example for transfer in the command line:
TNCcmd -i127.0.0.1 "PUT %SOURCEPATH%test.h %TARGETPATH%test.h"