Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "iostream"
- #include <fstream>
- #include <string.h>
- using namespace std;
- int main(int argc, char* argv[])
- {
- char s[] = "chcp 65001\nstart \"\" \"";
- ofstream fout("test.bat"); // создаём объект класса ofstream для записи и связываем его с файлом cppstudio.txt
- fout << s;
- //здесь ты вставляешь путь файла хуй знает как
- fout << "\"";
- fout.close(); // закрываем файл
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement