Re: Muilti-language batch files



wlattery wrote:
I have a GUI program that runs on Java. To start the program, I execute a batch file. The batch file has set statement:@set FP2HOME="C:\Program Files\Transition\FocalPoint2"

The problem is that the batch file does not work on PC's that have Win XP installed using a non-english language. Apparently, the directory name 'Program Files' is translated to a different name on the other languages. How do I make a batch file to work on all Win XP language versions?

I would appreciate any help

Thanks


To access standard Windows folders reliably you should use Win32 API calls or wrappers for such.

As an example, here are some .NET doc references that came up on Google: http://www.codeproject.com/dotnet/netdiagnostics4.asp

MSDN Library should help you with the rest.
.



Relevant Pages

  • Re: awk and sorting file
    ... interface, and a few of those can manage a batch file - curiously, the old ... manage a text mode language like AWK, batch language, or WSH, and I ... No, that's not news. ... was also interesting to hear that FORTRAN isnt dead yet. ...
    (comp.lang.awk)
  • Re: Problems with logon script
    ... mistake in choosing the language. ... I am going to resend the question in ... only in other machines with other domain accounts (not domain ... I noticed a syntax error in your batch file ...
    (microsoft.public.win2000.networking)
  • Re: Muilti-language batch files
    ... The problem is that the batch file does not work on PC's that have Win XP ... installed using a non-english language. ... 'Program Files' is translated to a different name on the other languages. ... How do I make a batch file to work on all Win XP language versions? ...
    (microsoft.public.windowsxp.general)
  • Re: String changer early attempt
    ... Herbert Kleebauer wrote: ... >I suppose you want to use the program in a batch file. ... a command line version. ... What language are you using on the code example. ...
    (alt.lang.asm)
  • Re: Create ZIP file on WinXP?
    ... Spencer) wrote: ... >To Compressed Folder" to create a ZIP file. ... through the Win32 API or a batch file? ...
    (comp.lang.pascal.delphi.misc)