Re: How to run dos command from qtp

2009-03-20 Thread Yaniv Mendelsohn
use a batch file create a batch file with this code and run it from qtp Yaniv On Wed, Mar 18, 2009 at 9:08 AM, ooth suresh wrote: > Hi > > I need to create new folder called "Results" from QTP script. Hence I used > dos command to do that. But the following code doesnt work Could you > plea

Re: How to run dos command from qtp

2009-03-19 Thread Srinivas Pavuluru
Hi Suresh, For more information you can see "Dmitry Motevich" solution http://motevich.blogspot.com/2008/04/how-to-run-qtp-test-from-command-line.html -- With Regards Srinivas P On Fri, Mar 20, 2009 at 10:47 AM, Sreedhar Mallipeddi < sreedha

Re: How to run dos command from qtp

2009-03-19 Thread Sreedhar Mallipeddi
Hi U can use FSO object to create folders, Checkout this as well.. *Set fso = CreateObject("Scripting.FileSystemObject") set f = fso.CreateFolder("C:\Username\Results")* On Wed, Mar 18, 2009 at 12:38 PM, ooth suresh wrote: > Hi > > I need to create new folder called "Results" from QTP script

Re: How to run dos command from qtp

2009-03-19 Thread Roman Zilber
SystemUtil.Run "cmd.exe", "/C mkdir C:\Username\Results" OR Dim oShell Set oShell = CreateObject ("WSCript.shell") oShell.run "cmd /C mkdir C:\Username\Results" Set oShell = Nothing Both are working On Wed, Mar 18, 2009 at 3:08 AM, ooth suresh wrote: > Hi > > I need to create new folder call

How to run dos command from qtp

2009-03-19 Thread ooth suresh
Hi I need to create new folder called "Results" from QTP script. Hence I used dos command to do that. But the following code doesnt work Could you please help me to achieve this?? Dim oShell Set oShell = CreateObject ("WSCript.shell") oShell.run "cmd /K mkdir C:\Username\Results" Set oShell