I am writing a program to hide files behind other files using Alternate Data Streams in Windows NTFS file systems.
The program is as follows:
Code:
#include <stdio.h>
#include <stdlib.h>
int main(void){
char hostfile[75], hiddenfile[75], hiddenFileName[15] ;
printf("Enter the name(with extension) and path of the file whose behind you want to hide another file: ");
scanf("%75s", hostfile);
printf("Enter the path(with name and extension of the file) to the file you want to hide: ");
scanf("%75s", hiddenfile);
printf("Enter the name of the file you want to hide: ");
scanf("%15s", hiddenFileName);
system("type \"%s\" > \"%s:%s\"", hiddenfile, hostfile, hiddenFileName);
return 0;
}
The complier is showing error as "Extra Perimeter in call to system"
but I am not getting where?