General information
Category:
ActiveX controls in VFP
Yes, it depends on the one_letter name:
Im just run the code below to see that restricted letters are:Aa,Bb,Cc,Dd,ee,Ff,Gg,Hh,Ii,Jj,Mm.
***************
ON ERROR ?chr(ia)
fso = CreateObject("Scripting.FileSystemObject")
FOR IA=65 to 90
lccom=chr(ia)+[=fso.GetFolder("c:\temp\")]
&lccom
lccom="fc="+chr(ia)+".Files"
&lccom
ENDFOR
FOR IA=97 to 122
lccom=chr(ia)+[=fso.GetFolder("c:\temp\")]
&lccom
lccom="fc="+chr(ia)+".Files"
&lccom
ENDFOR
<<<<<<<<<<<<<<<<<<<<<
>It seems, the slash should be at the end:
>fso.GetFolder("c:\test\")
I just added:
lcfolder = LEFT(lcfolder, LEN(lcfolder) - 1)
to my test code and it ran fine also. It was a long path to boot, so I don't think that the trailing backslash is a necessity. FWIW, GETDIR() returns a path with the trailing backslash.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only