Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fullpath() not working
Message
From
02/03/2004 14:50:37
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
02/03/2004 14:38:58
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00882238
Message ID:
00882432
Views:
15
I am being afraid of spaces in path names (in combination with FoxPro or VFP). However, I am now experimenting, and fullpath(lcFile) works fine, even in folders with spaces. I am not sure what is going on on your machine.

I am doing the testing wth VFP6, no SP.

In case you use curdir(), watch out for the fact that it doesn't include the drive letter.

>Hi Hilmar,
>
>I wondered about that myself, but since I'm making an exe that will be downloaded and installed on anyone's computer, I have no choice. InstallShield uses the user's default Program Files folder.
>
>Do you know of a way around it?
>I finally just quit using fullpath() and just tack curdir() on to the frontof the filename.
>
>
>>I have noticed in the past that spaces in path names cause problems, and should therefore be avoided. Perhaps this is causing problem here. In your case, it is the space in "Program Files".
>>
>>>I'm using VFP 7.0
>>>
>>>When I compile my exe, fullpath() quits working properly.
>>>Before running the exe I move my developement folder so the exe cannot find it.
>>>I move c:\myFolder to c:\Temp\myFolder
>>>I run the exe from "c:\Program Files\my2ndFolder"
>>>
>>>lparameters tcText
>>>local lcText, lcFile
>>>
>>>lcFile = 'myFile.HTML'
>>>lcText = TEXTMERGE( tcText ,.T. )
>>>STRTOFILE( lcText ,lcFile )
>>>
>>>lcFile = FULLPATH( lcFile )
>>>return lcFile
>>>
>>>This returns "c:\myFolder\myFile.HTML", even though "c:\myFolder" doesn't exist.
>>>I've verified that curdir() = "c:\Program Files\my2ndFolder".
>>>I have "use default directory" unchecked in my options.
>>>If it returned "c:\Program Files\my2ndFolder\myFile.HTML", I would infer that it wasn't finished saving it on disk.
>>>
>>>TIA
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform