shangrilla
Programmer
I am using gefiles to get files from a particular directory. Code:
thepath = "'" + ALLTRIM(Tab1.path1) + "'"
If DIRECTORY(tab1.path1) && make sure directory exist first
Chdir &thepath
Endif
getfile('All Files:*.*; *.TXT:txt; *.DOC:doc;*.DAT:dat')
Program looks for file under 'thepath' by default. Users can store any path under this. The problems I am facing is that is the path has spaces in it. Folder names with sapces in them like Program Files will cause problems. How can I avoid these errors? Does getfile has a 254 character size limit for 'thepath'?
thepath = "'" + ALLTRIM(Tab1.path1) + "'"
If DIRECTORY(tab1.path1) && make sure directory exist first
Chdir &thepath
Endif
getfile('All Files:*.*; *.TXT:txt; *.DOC:doc;*.DAT:dat')
Program looks for file under 'thepath' by default. Users can store any path under this. The problems I am facing is that is the path has spaces in it. Folder names with sapces in them like Program Files will cause problems. How can I avoid these errors? Does getfile has a 254 character size limit for 'thepath'?