Hi,
In continuation with this script. I have the following problem
Desperately looking for a solution here. I have the following script in UFT which is working fine. However I want to substitute this hard coded parameter by variables rpdate & date. I have tried with lot of options here. but not able to call the autoit exe file.
Dim rpdate Dim LegalEntity
LegalEntity = 36004367
rpdate = "28-02-2017" 'Legal_entity_Id = "36000586"
path = "H:\Sprint\Automation\Corepautomate.exe" Set oAutoIt = CreateObject("AutoItX3.Control")
oAutoIt.Run("H:\Sprint\Automation\Corepautomate.exe 28-02-2017 36004367")
The autoit script is which is also working fine.
If $CmdLine[0] = 2 Then
; No need to use "Call" - just name the function and pass the parameters
corep_reports($CmdLine[1], $CmdLine[2])
EndIf
Func corep_reports($rpdate, $legalentity)
------------------------------
-------------------------
EndFunc