Answer the question
In order to leave comments, you need to log in
How to open a file using C++?
I want an elementary bat file :
@echo off
start 333.png
Answer the question
In order to leave comments, you need to log in
#include <string>
int main(int argc, char* argv[])
{
std::string cmd = "start ";
if(argc > 0)
{
cmd += argv[1];
}
system(cmd.c_str());
}
programm.exe filename
Batnik is not needed. The analogue of your "start bullshit.png" would be a WinApi ShellExecute call
If you run the executable then -
and the
@echo off
start 333.png command was executed there
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question