Sign in to follow this  
Followers 0
kishannepal

HELP With iniread

4 posts in this topic

hello guys,

since few days m havin trouble with iniread function of autoit, cant say a trouble actually its more like trying to find a way out . I hav a GUI window with input box for entering paths of the folder to run. I am writing the input file to an ini file and storing it for later use. Now the trouble is when m trying to read from ini m geting the path without double quote(note that my values a stored without quotes in ini). 

I want to store the file path to a variable but without double quotes the path is of no use to me. Can anyone help me with this problem?? Even concatenating quotes to the file path will do but howw???

Share this post


Link to post
Share on other sites



$sWithDoubleQuotes='"'&$sWithoutDoubleQuotes&'"'

note that the " char (marked in red) is quotes by ' chars (marked in blue).

Share this post


Link to post
Share on other sites

@kishannepal - Even though this is a relatively simple question, it helps to supply some code, so that we don't misunderstand what you want, especially if English is not your everyday language.

As for including double quotes in your programming, you surround them with single quotes, as exampled above.

This is especially so if you use a string that contains a double quote - i.e.  'It was 10" long'


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites

Thanks orbs it worked  ...

TheSaint i knew it ws a simple problem thats the reason i didnt bother to put on the code. Still thanks for ur suggestion i will be as descriptive as possible in future.

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