Sign in to follow this  
Followers 0
armoros

[ SOLVED the OP had high brain temp.] -Diff. Languages ?

11 posts in this topic

#1 ·  Posted (edited)

Sorry people for the title but didn't knew how to ask.Maybe a stupid question but free to insult me if you thing so :)I want to ask if i make a script that uses system paths or automatic installation or what ever that can be in different language depending on the users OS language how to make it work for all.For example if i use the path in greek is <έγγρaφa κaι ρυθμίσεις> in hebrew is < מסמכים והגדרות > etc. How to make it easy to work in all languages.Or run a cmd command i.e the dir how to run for languages like greek or russian,hebrew etc.In my system i have the english language but when i run the dir command for example i get symbol characters (!@?) for greek named folders.Should i code it in all languages.How you do applications for all languages ?I am sorry and thank you.

Edited by armoros

[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

What does this return?

msgbox(64, "Directory is:", StringReplace(@UserProfileDir, @UserName, ""))

I believe, this is what you wanted...

Edited by MKISH

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites

What does this return?

msgbox(64, "Directory is:", StringReplace(@UserProfileDir, @UserName, ""))

I believe, this is what you wanted...

message box C:documents and settings\

[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites
:bye: Is this what you wanted...?

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites

path <Documents and Settings>

Try macro: @DocumentsCommonDir or @MyDocumentsDir

mm..so easy :)


[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites

:bye: Is this what you wanted...?

Thanks MKISH

Forgive me guys the high temp and humidity in greece has a bad effect on my brain.

I thing is easy to use the macro as Zedna suggested.

I complicate the thinks because i don't know basic AutoIt stuff.

Thanks for your time.


[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites

For example if i use the path <Documents and Settings> in greek is <έγγρaφa κaι ρυθμίσεις> in hebrew is < מסמכים והגדרות > etc. How to make it easy to work in all languages.

I provided an example to just counter this issue, rest assured you can have your way with System path macros...


----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites

My issue was how to run cmd scripts in non Latin languages,but is ok i understood some things wrong.

Thank you

Greece temp. 41 C & 60% humidity

:)


[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites

I provided an example to just counter this issue, rest assured you can have your way with System path macros...

Thank you MKISH i appreciate your help.

:)


[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites

I will put this as solved..


[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0