Jump to content

HELP With iniread


Go to solution Solved by orbs,

Recommended Posts

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???

Link to comment
Share on other sites

  • Solution

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

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

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
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'

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...