Reputation: 61
I have a folder named "FILES TO COPY", contains a text file named "NEW TEXT FILE" in it.
I am wanna list the content of folder using tcl glob function.
Below is my code
glob -dir C:\Tcl\FILES TO COPY *
Error i get in tcl shell is as follows no files matched glob patterns "FILES TO COPY *"
Kindly help me fixing the error.
Upvotes: 0
Views: 1670
Reputation: 246992
You need some more quoting to protect the spaces, and also the backslashes are being handled by Tcl as backslashes, not directory separators:
glob -dir "C:/Tcl/FILES TO COPY" *
Upvotes: 1