In our NC Solutions database you will find solutions for frequently required tasks

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" 

Product type

FAQ Data transfer TNCremo / TNCserver TNC 640 TNC 426/430 iTNC 530 TNC 128 TNC 620 TNC 320
Back to overview