I just got it working by adding another "\
BEFORE:
std::system("\"C:\\Windows\\System32\\forfiles.exe\" /p \"C:\\Users\\Longhair\\Desktop\\Text Test\" /s /m *.txt /d -153 /c \"cmd /c del...
Type: Posts; User: Longhair
I just got it working by adding another "\
BEFORE:
std::system("\"C:\\Windows\\System32\\forfiles.exe\" /p \"C:\\Users\\Longhair\\Desktop\\Text Test\" /s /m *.txt /d -153 /c \"cmd /c del...
When the CMD window opens, I see the following:
The filename directory name, or volume label syntax is incorrect.
I am trying to follow a working example of something I have done a couple of years ago:
#include <cstdlib>
int main(void)
{
std::system("\"C:\\Program Files (x86)\\Runtime...
Elysia, I was not able to get the std::cout working. When I start the .exe, the CMD window is blank on the inside as opposed to when I used the batch file.
After a bit of head scratching, I...
Adding another "\ worked :D
Now I will spend some time taking it all a part to see why it worked so I understand it for future reference.
Thanks!!
I am having a bit of a problem with the system function() simple solution code...
Dev-C++ 4.9.9.2
New .cpp file
Typed, not copied, the code from the previous post.
When I went to compile it, I...
GReaper - I just signed up for a six week online class "C++ for the Absolute Beginner" to give me a good start on the basics. From there I hope to do some self paced learning after finishing the...
I have just started to find the need to create cmd line batch files and I want to convert them to an .exe file for security reasons. I don't want to use a ".bat to .exe" converter because I would...