![]() |
How can I add %ProgramFiles% to a system() call?
Hello
How can I add %ProgramFiles% to a system() call? Here is my current code (using Dev-C++); Code:
#include <cstdlib>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. |
Re: How can I add %ProgramFiles% to a system() call?
Looks from your other post like you've already sussed it but as with the backslash you also have to escape quotes to include them in a string.
You want system to execute the following: Code:
"%ProgramFiles%\Symantec\LiveUpdate\LUALL.exe"Code:
system("\"%ProgramFiles%\\Symantec\\LiveUpdate\\LUALL.exe\""); |
Re: How can I add %ProgramFiles% to a system() call?
Thanks
|
| All times are GMT +5.5. The time now is 18:03. |