Hello
How can I add %ProgramFiles% to a system() call?
Here is my current code (using Dev-C++);
Code:
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
system("diskmgmt.msc");
system(""%ProgramFiles%"\\Symantec\\LiveUpdate\\LUALL.exe");
system("PAUSE");
return EXIT_SUCCESS;
}
Please tell me how to get this line: system(""%ProgramFiles%"\\Symantec\\LiveUpdate\\LU ALL.exe"); to work.
Thanks in advance,
Panarchy
PS: Once I've gotten this to work, I'd also like to know how to stop the command prompt window from appearing.