armoros Posted August 23, 2012 Share Posted August 23, 2012 (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 August 23, 2012 by armoros [font="verdana, geneva, sans-serif"] [/font] Link to comment Share on other sites More sharing options...
Zedna Posted August 23, 2012 Share Posted August 23, 2012 (edited) path <Documents and Settings>Try macro: @DocumentsCommonDir or @MyDocumentsDir Edited August 23, 2012 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
stormbreaker Posted August 23, 2012 Share Posted August 23, 2012 (edited) What does this return? msgbox(64, "Directory is:", StringReplace(@UserProfileDir, @UserName, "")) I believe, this is what you wanted... Edited August 23, 2012 by MKISH ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1 Link to comment Share on other sites More sharing options...
armoros Posted August 23, 2012 Author Share Posted August 23, 2012 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] Link to comment Share on other sites More sharing options...
stormbreaker Posted August 23, 2012 Share Posted August 23, 2012 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 Link to comment Share on other sites More sharing options...
armoros Posted August 23, 2012 Author Share Posted August 23, 2012 path <Documents and Settings>Try macro: @DocumentsCommonDir or @MyDocumentsDirmm..so easy [font="verdana, geneva, sans-serif"] [/font] Link to comment Share on other sites More sharing options...
armoros Posted August 23, 2012 Author Share Posted August 23, 2012 Is this what you wanted...?Thanks MKISHForgive 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] Link to comment Share on other sites More sharing options...
stormbreaker Posted August 23, 2012 Share Posted August 23, 2012 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 Link to comment Share on other sites More sharing options...
armoros Posted August 23, 2012 Author Share Posted August 23, 2012 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] Link to comment Share on other sites More sharing options...
armoros Posted August 23, 2012 Author Share Posted August 23, 2012 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] Link to comment Share on other sites More sharing options...
armoros Posted August 23, 2012 Author Share Posted August 23, 2012 I will put this as solved.. [font="verdana, geneva, sans-serif"] [/font] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now