NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

path constant paste

Solved!
Go to solution

When I copy and paste a path from window explorer into teststand as a constant, I need to add an extra "\" in front of all the "\" manually.  Is there a quicker way?  Thanks!

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 3
(3,936 Views)
Solution
Accepted by topic author jyang72211

You can prefix string expressions with the @ symbol to prevent backlashes from being interpreted as escape characters. Example:

 

@"c:\foo\bar\sub1\sub2\sub3\finally.txt"

Message 2 of 3
(3,934 Views)

Exactly what I am looking for.  Thanks!

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 3
(3,917 Views)