wjessee Posted December 12, 2004 Share Posted December 12, 2004 I am looking for a good way to help automate e-gold mass payments from a comma delimited file using cURL. Here is the code I have currently. ; Varibles $db = FileOpen("c:\e-gold\list.csv", 0) $account="123456" $password="password" Run ( "cmd.exe") WinWaitActive("C:\WINDOWS\system32\cmd.exe") ; Read in lines of text until the EOF is reached While 1 $line = FileReadLine($db) If @error = -1 Then ExitLoop $Rec = StringSplit($line,",") Send("echo Paid Account ") Send($Rec[1]) Send(" with $") Send($Rec[2]) Send(" USD") Send(", Memo: ") Send($Rec[3]) Send(" >> paid.txt") Send("{ENTER}") Send("curl ") Send("+'") Send("https://www.e-gold.com/acct/confirm.asp?AccountID=") Send($account) Send("&PassPhrase=") Send($password) Send("&Memo=") Send($Rec[3]) Send("&WORTH_OF=Gold&PAY_IN=1&Amount=") Send($Rec[2]) Send("&Payee_Account=") Send($Rec[1]) Send("+'") Send("{ENTER}") Wend FileClose($db) The db (list.txt) is formated as accountnumber,amount,memo What I have works, but is kludgy. Any suggestion welcome. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now