What is the InitDir format when the path contains spaces e.g
InitDir 'c:\temp\data sheets'
I have tried Quote('c:\temp\data sheets') but that does not return the directory list from dirList() either.
TIA
Chris
Chris,
Try appending a file/format mask to the name of the directory. For instance, if you want to get a list of all files in the "c:\temp\data sheets" directory you would enter:
InitDir "c:\temp\data sheets\*.*"
Hope it helps,
Stefano
Sorry, the folder I was attaching was empty. DirList() works fine as long as the directory is not empty.
Thanks