Hello, how can I implement the execution of the vbs script in the studio?

It seems that this is not realistic ( http: //yandex.ru / ... ). So answered Yandex ... And this site makes you believe that you can: http://forum.sources.ru/index.php?showtopic=347011

I will not give up the normal resource.

Thank.

  • Run in the studio or still in programs written in Visual Studio? - Alex Kapustin
  • In the programs written in the studio ... - Alerr

1 answer 1

And through system (), will it not be fulfilled? Or do you want to somehow separate the variables in C ++ and VBS?

If the script results are output to the standard output, then you can read them using popen ().

  • Such a thing, .. it opens with my system-th, if it is separate ... I would like to shove it somehow into the 1-n executable file ... (exe + vbs), and vbs to run from the code may not code, well, in general from the "container" ..... - Alerr
  • one
    If the script does not change (or slightly changes) its text can be stored in string variables (constants), in general, type when writing a program. In the course of the program, it is possible to generate executable script text on its basis. Then output to a file (for example in TEMP) and execute. Then delete the file. - avp
  • If the text does not change .. then why bother to stuff it at all? @Alerr, why run unmodifiable code on vbs? :) - Alex Kapustin
  • Well, I have a script that I just want to execute ... No matter why (the program in the script is difficult to translate into with ++). those. AVP, you want to say that I can create a file and dump it all .. And then delete it? String variables are you talking about string? - Alerr
  • Thanks, original .. - Alerr