Thread: Run vbscript from C++ console application

  1. #1
    dp_goose
    Guest

    Question Run vbscript from C++ console application

    Is it possible and how do I go about running a vbscript from a console application?

    Thx

    Goose

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Code:
    system("wscript MyScript.vbs");

  3. #3
    dp_goose
    Guest

    Unhappy

    Sorry, but I didn't make myself clear before.

    I actually have a string that I want to pass to it and get data returned back. It so that the translation/processing can by modified easily with out having to recompile.

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    You can maybe do this with Console Handles using a few APIs, or perhaps through COM, but it will be a fair bit of work..

    Perhaps you can put the data you want to pass in a file....run the script...the script reads the files, makes changes, exits...and your prog opens the file and reads the changed data

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Console application - input handling
    By Something in forum C++ Programming
    Replies: 4
    Last Post: 06-09-2007, 02:19 PM
  2. Running a console application
    By maxorator in forum C++ Programming
    Replies: 4
    Last Post: 10-03-2005, 04:23 AM
  3. My First Network Console application
    By aroticoz in forum Networking/Device Communication
    Replies: 3
    Last Post: 07-14-2005, 03:49 AM
  4. Few problems with console application
    By GaPe in forum C Programming
    Replies: 12
    Last Post: 04-03-2002, 01:19 PM