Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Path to My Documents in W2K and 98
Message
Information générale
Forum:
Windows
Catégorie:
Autre
Divers
Thread ID:
00698633
Message ID:
00699634
Vues:
19
Being the good hen I am I saw an egg and hatched it it turned out to be a tiny dinos egg, now it is following me guess I am stuck with the tinidini for a while :-)

>>Thanks Ed. But this application is not mine and when I pointed My Documents files to it it just took the whole path.
>>
>
>You're going to encounter tremendous problems using WIndows Installer based installation tools, which are going to be necessities with Win2K/WinXP and later OSes, and even with Win98 where user profiles are enabled. I'd recommend that you learn how to resolve special folders through the OS; it's not a matter of choice. In network environments, where roaming profiles are in use and people routinely want to point to a common network location for their documents, which means that My Documents is not always where you think it should be.
>
>The dinosaurs died off because they couldn't adapt to changes in their environment; I think I see the makings of another in your application...
>
>>>>I have an application using My Documents and I have two sets of the same data but one is on a 98 and another is on W2K, residing in My Documents. The path to My Documents is hard coded in the W2K machine c:\Documents and Setting ......\My Documents\DirName\FileName.ext now the same data on the 98 machine is just c:\My Documents\DirName\FileName.ext. I doubt if the application will be able to use env. vars.
>>>>
>>>>Any suggesstions. Right now I have created a similar directory structure in 98 but it doesn't feel right.
>>>
>>>It's much simpler than you make it out - the Shell.Application object has a SpecialFolders collection which includes the "My Documents" folder for the current user, and there are a series of Shell API functions such as SHGetFolderPath() that use the CSIDL (a unique, cross platform special folder reference which is resolvable via the registry) which provides a mechanism to do this - it also allows you to find other special folder paths such as the Application Data and Local Data paths of the current user for OS that support such. This is the Windows-approved method for resolving special folder relative references.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform