Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Execute a file with a certain exe

$
0
0
Hi,

Im am trying to figure out how to run a python file (window.py) with a certain program (pythonw.exe) in c++ so how do I do this because it is really hard to try and figure out how. I first got told to do it like this
[code]
system("pythonw.exe myfile.py");
[code]

but it just comes up with this error
[code]
mingw32-g++.exe -Wall -fexceptions -g -c "E:\Raftech\C++\C++ Projects\EXE Program\main.cpp" -o obj\Debug\main.o
E:\Raftech\C++\C++ Projects\EXE Program\main.cpp:1:7: error: expected constructor, destructor, or type conversion before '(' token
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings (0 minutes, 0 seconds)
[code]

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>