path name contains blanks

  • Thread starter Thread starter Guest
  • Start date Start date
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 ?
 
"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.
 
Back
Top