How to run or execute a dos file or command using excel macro

You will have to create a macro something like this:

Sub RunTest ()
Dim ReturnValue
ReturnValue = Shell("""C:\selenium\GoogleTest.bat"" ""G:iDO Messagingttermpromacrosbdf.ttl""", 1)
AppActivate ReturnValue
End Sub

Submitted by Pavandeep Puddupakkam

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: wiki
Posted on: 2/25/2010 at 11:56 AM
Tags: , ,
Categories: Software Testing | VBA Macros
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Comments

Add comment


 

  Country flag

biuquote
  • Comment
  • Preview
Loading