Discussion
Topics
Last Day
Last Week
Tree View

Search
New Messages
Keyword Search

Help
Getting Started
Formatting
Troubleshooting
Program Credits

Utilities
Edit Profile
Administration
Contact

 
forum - discussion board
- 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?
Top of pagePrevious messageNext messageBottom of pageLink to this message  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.


Top of pagePrevious messageNext messageBottom of pageLink to this message  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?


Top of pagePrevious messageNext messageBottom of pageLink to this message  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.


Top of pagePrevious messageNext messageBottom of pageLink to this message  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?


Top of pagePrevious messageNext messageBottom of pageLink to this message  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


Top of pagePrevious messageNext messageBottom of pageLink to this message  By Anonymous on Thursday, July 21, 2005 - 03:58 pm:

%-) genuinely interested by this website


Add a Message


This is a public posting area. If you do not have an account, enter your full name into the "Username" box and leave the "Password" box empty. Your e-mail address is optional.
Username:  
Password:
E-mail:


- about - downloads - registration - forum - misc - home - © 1996-99 GWD Text Editor