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

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>