-
Directory help.
Ok i am trying to make a program that deletes only a specific location on a floppy disk..
but it doesn't seem to be working...
Code:
#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
system("del A:\\delete directory");
system("PAUSE");
return 0;
}
It says that system could not find the directory...
But it works if there is no spaces on the directory...
-
Not every compiler will have a system() command which allows spaces in filenames.
Try perhaps
Code:
system("del \"A:\\delete directory\"");
-
-
-
It gave me an error that said device not ready...
but it was because i had a read-only floppy disk or something.. i changed the floppy disk and it works