Nathan Posted March 14, 2019 Report Share Posted March 14, 2019 When I try running a macro from the command line absolutely nothing happens. No error message no results. I've tried multiple macros, including one system macro. Examples: macexp.exe /A"Terminate Macro Express" macexp.exe /ATerminate Macro Express macexp.exe /A::C:\Users\Fulfillment\Documents\Insight Software\macex.mex?Test Must be something simple I'm not doing? Quote Link to comment Share on other sites More sharing options...
Cory Posted March 14, 2019 Report Share Posted March 14, 2019 Maybe try running the command prompt as an administrator. Maybe try disabling your anti-virus to test. Quote Link to comment Share on other sites More sharing options...
Samrae Posted March 14, 2019 Report Share Posted March 14, 2019 Are you in the folder where the Macro Express program files are installed? cd "C:\Program Files (x86)\Macro Express Pro" macexp.exe /ATerminate Macro Express or include the full path "C:\Program Files (x86)\Macro Express Pro\macexp.exe" /ATerminate Macro Express Quote Link to comment Share on other sites More sharing options...
terrypin Posted August 2, 2019 Report Share Posted August 2, 2019 Came across this thread today and would appreciate re-opening the discussion. I tried the same syntax options as Nathan - all in vain. If it ever did work, that no longer does so in Win 10 version 1903. Would welcome contradiction! I think there's some ambiguity about the correct syntax. I interpret Help Command Line Parameters as meaning that to run a macro called 'Test Open Notepad' we should use the following in either the Run box or (with extra effort to change directory as Samrae says) at a Command Prompt: "C:\Program Files (x86)\Macro Express Pro 6\Macexp.exe" /ATest Open Notepad That fails here in both, as do variants of it. Does it work for others? The only reliable way I've found to run a macro externally is to first export it with R-Click>Export>Export as Playable For example, having done that, placing the following in the Run Box will open Notepad: C:\Users\terry\Dropbox\MXE files\Test Open Notepad.mxe Quote Link to comment Share on other sites More sharing options...
acantor Posted August 2, 2019 Report Share Posted August 2, 2019 Try this instead: specify the path, use the executable "meproc.exe" instead of macexp.exe, and don't add a space after the /A parameter: [c:\path to Macro Express]\meproc.exe /Atest Quote Link to comment Share on other sites More sharing options...
terrypin Posted August 2, 2019 Report Share Posted August 2, 2019 Thanks Alan but I had tried meproc. There was no space after 'A' in my example, although that was yet another variant I tried.) Does either macexp or meproc work for you? Quote Link to comment Share on other sites More sharing options...
acantor Posted August 2, 2019 Report Share Posted August 2, 2019 I just entered this at the "Run" prompt, and it worked: C:\Program Files (x86)\Macro Express Pro 6\MeProc.exe /AOpen C drive in Windows Explorer "Open C drive in Windows Explorer" is the nickname of a Global MEP macro. I did NOT include the quote marks on the Run line. I suggest double-checking that the nickname is unique. Macro Express doesn't care whether you have more than one script with the same nickname, but heaven only knows which one will execute if two or more scripts have the same nickname. Quote Link to comment Share on other sites More sharing options...
Samrae Posted August 2, 2019 Report Share Posted August 2, 2019 I tested this on both Windows 7 and Windows 10 1903. I used a batch file instead of the Run dialog. This does not work: "C:\Program Files (x86)\Macro Express Pro 6\macexp.exe" /ATest Text Box Display This does: "C:\Program Files (x86)\Macro Express Pro 6\Meproc.exe" /ATest Text Box Display The results were the same for Windows 7 and Windows 10. Quote Link to comment Share on other sites More sharing options...
terrypin Posted August 2, 2019 Report Share Posted August 2, 2019 Thanks both. The Meproc version worked this time, although I'd have sworn it did not do so earlier! Yes, the Macexp version (used in Help) still does not work. Quote Link to comment Share on other sites More sharing options...
Samrae Posted August 2, 2019 Report Share Posted August 2, 2019 After further testing it looks like using MacExp.exe works if Macro Express Pro is not already running. Quote Link to comment Share on other sites More sharing options...
terrypin Posted August 2, 2019 Report Share Posted August 2, 2019 Agreed, reproduced that here. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.