Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running scripts

Status
Not open for further replies.

Neoyanderson

Programmer
Apr 18, 2004
16
US
how do I write scripts and execute them?
 
You have at least two choices
1. create windows script component
2. You should implement interface IActiveScriptSite

You also can use CreateProcess/system/ShellExecute family functions only to run the script. But using this way you will not be able to interact with the script. More info you can find at microsoft.com, search for windows script hows, download the windows host script5.6 SDK as well as the instalation for host script. It has a enough good tutorial.
Some vendor specific scripts(Python, TCL, PHP, Perl, CSH) provides theirs own API. Some of them has only own API(for example PHP).

Ion Filipski
1c.bmp
 
commands for DOS you may execute directly with function system:
system("cls");
system("someDosScript.bat");

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top