Filename with spaces in the 'Shell' function

SuzieGirl

New member
Local time
Today, 23:15
Joined
Aug 10, 2000
Messages
5
I'm trying to use the shell function to open files, which works fine, as long as there aren't any spaces in the directory path or filename, in which case, it seems to be trying to open each section as separate files, i.e., "C:\my" then "documents\images\a" then "file" then "name.txt", for example.
Does anyone know a way round this, or an alternative? I can't believe that there's not a simple solution to this.
Thanks.
 
Hi Suzie

you can get round this if you use the old DOS file/folder name; like this:
"C:\mydocu~1\images\filena~1.txt"

But of course you have to know what the old file/folder name is - you can get this by right clicking the file/folder and looking at Properties/MS-DOS name.

NB because file names would otherwise be duplicated by this process, the DOS file name depends on the order that the files are created - if you already have a file called 'File Name.txt' and you later create another called 'File Names.txt' the second file will be called 'Filena~2.txt' and so on.

Hope this helps

Mike
 

Users who are viewing this thread

Back
Top Bottom