path name contains blanks

G

Guest

I am trying to import a .TXT file where the directory path
of this file contains embedded blanks in the name
e.g. //Mainfolder/My subfolder

I have tried following syntaxes:

//mainfolder/my subfolder/myfile.txt
"//mainfolder/my subfolder/myfile.txt"
'//mainfolder/my subfolder/myfile.txt'

\\mainfolder\my subfolder\myfile.txt
"\\mainfolder\my subfolder\myfile.txt"
'\\mainfolder\my subfolder\myfile.txt'

I always get the message: You cannot import a text file unless it
has one of these extensions: TXT, CSV, ...

So, what is the correct syntax ?
 
B

Brendan Reynolds

"driveletter:\mainfolder\my subfolder\myfile.txt"

If the file is on a network share, you may be able to use ...

"\\servername\share name\myfile.txt"

.... but I have not tested this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top