1

I have a problem to create .vbs file becouse this "" cannot put it into "". There is example: Where is batch<<"echo x=msgbox(" <-- and this quotation marks is blocking the last one. How can I make it work?

#include <iostream>
#include <fstream>

using namespace std;

int main()
{
    ofstream batch;
    batch.open("name.bat");
    batch<<"@echo off";
    batch<<"echo x=msgbox("Your Text Here" ,0, "Your Title Here") >> msgbox.vbs";
    batch<<
    batch.close();
    std::cin.get();
    return 0;
}

0 Answers0