[Gambas-user] Probem analysing Desktop path

Rolf-Werner Eilert eilert-sprachen at ...221...
Tue Mar 6 17:09:47 CET 2012


Willy - are you really sure the path name is translated, not only its 
caption within the GUI? I think you don't need to worry... On my German 
system, it would be "Arbeitsfläche", and there is still a ~/Desktop 
(with k).

Rolf



Am 06.03.2012 15:48, schrieb Willy Raets:
> Hi all,
>
> I'm have this in my code:
>
> If Exist(Use.Home&  "/Desktop) then
>     sPath = User.Home&  "/Desktop/SystemInfo.txt"
> Endif
>
> Now it turns out that this only works on systems with English language.
> Other systems translate "Desktop" into local language!!
> Like for Dutch it will be "Bureaublad" instead of "Desktop"
>
> As it is impossible for me to test for 150 different ways "Desktop" is
> written in other languages, I was wondering is there a way around this.
>
> Does the system somewhere have the original English name for Desktop
> that I can test against? Or is there any other way of solving this
> problem?
>
> Thanks,
>
> Willy
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>





More information about the User mailing list