compression - Run rar.exe and compress a file using the rar parameters (C++) -
hi guys have created code not know how put parameters rar.exe using shellexecute, of know how put parameters using shellexecute?
i want use these parameters
rar.exe -v50m archive.rar "windows tutorial.pdf"
code:
#include <stdio.h> // c library perform input/output operations #include <tchar.h> #include <stddef.h> // c standard definitions #include <iostream> // input/output #include <fstream> #include <cstdlib> #include <windows.h> int main() { shellexecute(null, "open", "rar.exe", null, null, sw_show); }
Comments
Post a Comment