aa2zz6

Issues with IniWrite

3 posts in this topic

Is anyone aware of why the iniwrite function puts a space before the file.ini name? How do I remove the space?

It's basically writing it like this: Config.ini   << Space is before the word.

;Create a constant variable in Local scope of the filepath that will be read/written to.
    Local Const $sFilePath = @ScriptDir & "\Mapping\ " & "Config" & ".ini"

    Local $sFilewrite = IniWrite($sFilePath, "Mapping", "Path", "...")

Space Before word.png

Share this post


Link to post
Share on other sites



4 minutes ago, aa2zz6 said:

 

;Create a constant variable in Local scope of the filepath that will be read/written to.
    Local Const $sFilePath = @ScriptDir & "\Mapping\ " & "Config" & ".ini" <<<<<--------You have a space after your last \!

Space Before word.png

Because you're telling it to?

1 person likes this

When you're dead, you don't know you're dead - it's only difficult for those that know you. It's the same way when you're stupid...

My Scripts: SCCM UDFInclude Source with Compiled Script, Windows Firewall UDF

Share this post


Link to post
Share on other sites
1 minute ago, JLogan3o13 said:

Because you're telling it to?

Thanks Logan, I missed that.

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