-
Quick Question
Okay, I have some questions, first off.....how can I copy, rename, and delete files...and also, can someone tell me why this won't work:
int bleh(char TheDrive[0])
{
char SetupDrive[8];
SetupDrive=TheDrive[0]+:\windows\Thisfile;
if(access(SetupDrive, 00))
{
return 1;
}
else
{
return 0;
}
}
thanks a lot!
-
The reason this will not work
int bleh(char TheDrive[0])
{
char SetupDrive[8];
SetupDrive=TheDrive[0]+:\windows\Thisfile;
//Change to
char SetUpDrive[255] = "";
SetUpDrive[0] = TheDrive[0];
SetUpDrive[1] = '\0';
strcat(SetUpDrive, "\\windows\\ThisFile.txt");
thanks a lot!
-
It's a lot easier to just use the unix style folder names, which work fine.
int bleh(char TheDrive[0])
{
char SetupDrive[8];
SetupDrive=TheDrive[0]+:\windows\Thisfile;
//Change to
char SetUpDrive[255] = "";
SetUpDrive[0] = TheDrive[0];
SetUpDrive[1] = '\0';
strcat(SetUpDrive, "/windows/ThisFile.txt");
-