So, the problem is how to pass value from QTP script to batch file?

SystemUtil.Run "yourbatch.bat", "params"

In batch file you use the parameters as %1 %2 ...

But why you don't want to do all the job in VBscript?

On Fri, Feb 13, 2009 at 10:44 AM, karthik vellur <karthikv...@gmail.com> wrote:
> Hi,
>
> I have to copy two files which are created each time i run the script, The
> name of the files are generated uniquely each time using a timestamp. I am
> suppose to copy those files from the source folder to a different one.I am
> trying to copy the files using Batch Programming.The problem is how to
> specify the file names which are generated uniquely each time, so i think i
> ll have to import the filenames from the QTP Script to the Batch file.How do
> i do that ? any idea ? Can you help me out with this.??????
>
> Thanks
>
> Regards,
>
> Karthik V
>
> On Fri, Feb 13, 2009 at 8:25 PM, Roman Zilber <rzil...@gmail.com> wrote:
>>
>> Which part of the task is a problem for you?
>>
>> On Fri, Feb 13, 2009 at 2:06 AM, kart <karthikv...@gmail.com> wrote:
>> >
>> > Hey hi ,
>> >
>> > I am facing a problem.
>> >
>> > I need to invoke a batch program in a QTP script And the batch program
>> > has to copy a file which has a filename as a timestamp generated in
>> > the script . I want to use the timestamp generated filename in the
>> > script so that the copy can take place. Can you help me out guys.
>> > Plssssssssssss
>> >
>> > >
>> >
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 MercuryQTP@googlegroups.com
To unsubscribe from this group, send email to
mercuryqtp+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to