Jump to content

User/Pw inetget


Recommended Posts

Try this:

Local $sFilePath = @ScriptDir & "\member.ini"

;change to the right URL
;InetGet("http://test.com/member.ini", $sFilePath)

Local $sUserName = IniRead($sFilePath, "UserAndPass", "Username", Default)
Local $sPassword = IniRead($sFilePath, "UserAndPass", "Password", Default)

ConsoleWrite("The user name is: " & $sUserName & @CRLF)
ConsoleWrite("The password is: " & $sPassword & @CRLF)

The ini file I made for testing is called member.ini and looks like this:

[userAndPass]
Username=ThisIsMyName
Password=ThisIsMyPass

Edited by Herb191
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...