0

Hello,
I'm tring to set a string variable to be a path and filename to a certain file.
I need it to look like:
(load "S:\Tools\Tools_Subfolder\MyStuff\\test.txt")

But when I try this command:
LoadCommand = "(load \"S:\Tools\Tools_Subfolder\MyStuff\test.txt \")"
I get:
Compile error, Expected End of Statement
The cursor highlights the S

Thanks,
Mark

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by mgorecki
1

You must double double quotes inside double quotes: LoadCommand = "(load \""S:\Tools\Tools_Subfolder\MyStuff\test.txt \"")"

Votes + Comments
Very helpful!
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.