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 *