Jump to content

Recommended Posts

Posted

When I'm trying to run this script it always show the "Error" rather than the Username. Can anyone help me out here? Thanks

;CODE

$var = IniRead(@ScriptDir & "Login.ini", "Information", "AccountName", "Error")

MsgBox(4096, "Result", $var)

;End of Code

;Login.ini file

[information]

;

AccountName=Username

;End of Login.ini file

Posted

  NS5 said:

Delete this post there is a problem with my AutoIT its working 100% in my VM.

You have problem with path seperater (it's missing), you should do it like this:

  Quote

$var = IniRead(@ScriptDir & "\Login.ini", "Information", "AccountName", "Error")

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

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
  • Recently Browsing   0 members

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