Re: True case structure of file path? by Leonid
Leonid
Tue Aug 16 05:15:51 CDT 2005
May be something like this
declare Integer FindFirstFile in Win32API String Filename, String Buffer
m.bf=space(1024)
FindFirstFile("myfile.jpg",@m.bf)
m.b1=substr(bf,45)
m.b2=at(chr(0),m.b1)
m.b3=left(m.b1,m.b2-1)
?m.b3
Leonid
"Dennis Allen" <dennis@dennisallen.com> wrote in message
news:eMBLmIcoFHA.3068@TK2MSFTNGP15.phx.gbl...
> Thanks for the reply. Isn't that flags parameter in VFP8? I only have
> VFP6...Dennis
>
> "Eric den Doop" <ericdendoop@xspamblockxfoxite.com> wrote in message
> news:eX2KKyZoFHA.2720@TK2MSFTNGP10.phx.gbl...
>> VFP's ADIR() function can return the original case. You have to specify
>> the Flags parameter. See VFP help for details.
>> --
>> Eric den Doop
>> www.foxite.com - The Home Of The Visual FoxPro Experts
>> VFP MVP
>>
>> "Dennis Allen" <dennis@dennisallen.com> wrote in message
>> news:eqnz$cZoFHA.2484@TK2MSFTNGP15.phx.gbl...
>>> Hi. Believe it or not, I'm using Visual FoxPro to generate JavaScript
>>> code. This code references images found on a web site. Problem. The
>>> server must be case sensitive. In other words, if I generate [./ygl
>>> casket offerings/metal caskets/premier
>>> metals/pharaohfrontppt_thumb.jpg], I get file not found. I need to
>>> generate [/YGL Casket Offerings/Metal Caskets/Premier
>>> Metals/PharaohFrontPPT_thumb.jpg].
>>>
>>> Is there a function or utility that will retrieve the true case
>>> structure of a given file and it's path? The only other option is to
>>> convert all files and folders to lowercase before publishing them in
>>> Frontpage.
>>>
>>> Any advice would be really appreciated...Dennis
>>>
>>
>>
>
>