Executing a DOS command

Hi,

I declared a variable g_mstest and set it default value to like this

%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\mstest.exe

And in the Run Dos Command action i gave %g_mstest%

but it gave the below error

'C:\Program' is not recognized as an internal or external command,

Am i did something wrong while assigning the value?

Hi

You should use the Execute Program Action, the Run Dos Command is intended for just that, running dos commands and batch files.

 

 

thank you.  it solved my problem