c++ run .exe file with parameters -
im trying run exe file c++ no luck
i tried this:
system("c:\\program files (x86)\\counter-strike condition 0 1.2 build 2771\\hl.exe"); how can run hl.exe parameters?
thanks
update:
'c:\program' not recognized internal or external command, operable program or batch file im getting error.
i tried system("c:\\hl.exe"); , works good. think problem in whitespaces
you can run executable parameters adding them end of hl.exe on command line.
system("c:\\program files (x86)\\counter-strike condition 0 1.2 build 2771\\hl.exe fullscreen"); where fullscreen parameter run hl.exe with.
with spaces in path can put quotes around string containing executable path:
system("\"c:\\program files (x86)\\counter-strike condition 0 1.2 build 2771\\hl.exe\" fullscreen");
Comments
Post a Comment