Run CMD from its original directory

Hello,

I am tying to run a cmd file from its directory via action script but whatever i did is not working . seems like they have been creating vbs to run cmds in the past and i guess this is why . anybody would be able to help?

Name of the file mte.cmd and path is C:\BF_Packages\MDT\MST

machine is 64 bit win10

I have some notes in my tip at Tip - Action Override User settings

The trick is to pass two commands to CMD.exe; one to CD into the directory, and the second to launch the batch file.

waithidden CMD.exe /c "cd C:\BF_Packages\MDT\MST & mte.cmd"
2 Likes