
- about - downloads - registration - forum - misc - home - © 1996-99 GWD Text Editor
Run .BAT file from macro?
GWD Text Editor Forum: Technical Support: Run .BAT file from macro?
    By Michael Jennings on Tuesday, July 30, 2002 - 12:13 pm:
How do I define a macro that runs a batch file? What symbol would I use to signify the current file being edited, so that I could have the batch file operate on it? Thanks.
    By Bart Lateur on Friday, August 2, 2002 - 12:42 pm:
You can create a tool that just runs a .bat file. Does that do what you want?
    By Vedran Gaco (Vgaco) on Saturday, September 7, 2002 - 10:01 am:
BAT file can be executed from the GWD C Script using system or Gte_ExecuteTool function and GWD C Script can be executed from the macro using Param1/ExecScript commands. In other words you can create macro that runs a GWD C Script: Param1 "scriptname.c" ExecScript and GWD C Script that executes a batch file.
    By ben on Thursday, September 9, 2004 - 06:41 pm:
I am a little confused about the different this function call. Are their any examples of this function on the message board?
    By Vedran Gaco (Vgaco) on Friday, September 10, 2004 - 12:14 pm:
Choose ScriptWizard command from the macro menu, save it as e.g. MyRunBatScript.c and replace text of created script file with this one: #include #include int main(int argc, char *argv[]) { system("c:^#92;^#92;macro.bat"); return 0; } Now choose Macro command from the Macro menu, create new macro using the New command and in the Edit Macro dialog box enter following two lines: Param1 "MyRunBatScript.c" ExecScript
    By Anonymous on Thursday, July 21, 2005 - 03:58 pm:
%-) genuinely interested by this website
- about - downloads - registration - forum - misc - home - © 1996-99 GWD Text Editor
|