you can use below code to get latest file in the folder. Same fucntion you
can make recursvie until get the file
spath =folder path
str=GetNewestFile(spath)
Function GetNewestFile(spath)
sNewestFile = Null ' init value
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oFolder = oFSO.GetFolder(sPath)
Set oFiles = oFolder.Files
For Each oFile In oFiles
On Error Resume Next
If IsNull(sNewestFile) Then
sNewestFile = oFile.Path
dPrevDate = oFile.DateLastModified
Elseif dPrevDate < oFile.DateLastModified Then
sNewestFile = oFile.Path
dPrevDate = oFile.DateLastModified
End If
On Error Goto 0
Next
If IsNull(sNewestFile) Then sNewestFile = ""
GetNewestFile=sNewestFile
End Function


On Wed, Apr 24, 2013 at 11:37 AM, raveesh rai <[email protected]>wrote:

> Hi Guys,
>
> I am working on QTP automation systems. I need to write custom code in
> order to pick an Installer for my application and run the same. Can any one
> help me to guide with code snippet that I should write in order that:
> 1) The code should be able to pick the installer from a folder path
> location and run the latest Build Exe installer. The exe files are updated
> as per dates sorted.
> 2) Also, the code should be able to move the installer to click to next-->
> next selection during the installation process.
>
> Please help guys.This really help needed.Thanks!
>
> Ravi
>
>
> On Wed, Apr 24, 2013 at 11:29 AM, gaurav sharma <[email protected]>wrote:
>
>> Hi Lokesh,
>>
>> The only solution is to uninstall UFT and then instal QTP11.
>>
>> Regards,
>> Gaurav
>>
>>
>>
>> On Sat, Apr 6, 2013 at 11:59 AM, lokesh vinu <[email protected]>wrote:
>>
>>> Hi All,
>>>
>>> Thanks for your all your reply.
>>> We are using seat License. Will try to downgrade and let you know the
>>> results.
>>>
>>>
>>>
>>>>
>>>> Thanks
>>>> Nikhil Gangwar
>>>>
>>>>
>>>> On Fri, Apr 5, 2013 at 4:28 PM, udhaya kumar <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi Lokesh,
>>>>>
>>>>>                        I think it is not possible. But you can
>>>>> uninstall UFT and install qtp 11  with the license you have.
>>>>>
>>>>> May i know that third party tool. Why are you going to integrate it.
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Udhay
>>>>>
>>>>>
>>>>> On Fri, Apr 5, 2013 at 12:13 PM, lokesh vinu <[email protected]>wrote:
>>>>>
>>>>>> Hello All,
>>>>>>
>>>>>> Is it possible for us to downgrade HP UFT 11.5 to QTP 11. Can I use
>>>>>> the license of HP UFT to QTP 11..??
>>>>>>
>>>>>> Reason for downgrading: Need to integrate 3rd party tool which is not
>>>>>> compatible HP UFT.
>>>>>>
>>>>>> Thanks in advance.
>>>>>> --
>>>>>> Thanks & Regards
>>>>>> Lokesh K
>>>>>> www.testautomateandenjoy.blogspot.com
>>>>>>
>>>>>> --
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>>>>> group.
>>>>>> To post to this group, send email to [email protected]
>>>>>> To unsubscribe from this group, send email to
>>>>>> [email protected]
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/MercuryQTP?hl=en
>>>>>>
>>>>>> ---
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "QTP - HP Quick Test Professional - Automated Software Testing"
>>>>>> group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>  --
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>>>> group.
>>>>> To post to this group, send email to [email protected]
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected]
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/MercuryQTP?hl=en
>>>>>
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "QTP - HP Quick Test Professional - Automated Software Testing"
>>>>> group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>>
>>>>>
>>>>
>>>>  --
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>>> group.
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/MercuryQTP?hl=en
>>>>
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "QTP - HP Quick Test Professional - Automated Software Testing"
>>>> group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Thanks & Regards
>>> Lokesh K
>>> www.testautomateandenjoy.blogspot.com
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>> group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/MercuryQTP?hl=en
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "QTP - HP Quick Test Professional - Automated Software Testing"
>>> group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>
>>
>> --
>> GAURAV SHARMA
>> S/W ENGG.
>> ACCENTURE
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> "QTP - HP Quick Test Professional - Automated Software Testing"
>> group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/MercuryQTP?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "QTP - HP Quick Test Professional - Automated Software Testing" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> *Thanks & Regards
> Raveesh Rai
> Mob:09911597871**
> *
>
>
>
>  --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to