Answer the question
In order to leave comments, you need to log in
How to call the standard Windows "defrag" program in C/C++ code?
Hello.
Can't call defrag program and pass keys when writing C++ code
system("defrag");
или
system("defrag C:");
Answer the question
In order to leave comments, you need to log in
Let's guess: you're trying to run a 64-bit defrag on a 64-bit OS from a 32-bit application? It is not recognized as an internal or external command operable program or batch file. :-)
And why are you using system? CreateProcess does not suit you? Read all the same to the dock in MSDN on the system, there, as it were, they hint for what it is used and how.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question