Thread: system function

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    6

    system function

    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?
    Last edited by Khokhar; 04-05-2013 at 02:20 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C system(...) function
    By achitan in forum C Programming
    Replies: 10
    Last Post: 01-27-2011, 02:36 PM
  2. Help with system() function
    By anju.kap2r in forum C Programming
    Replies: 8
    Last Post: 03-24-2009, 11:20 AM
  3. system() function using
    By Rommeo in forum C++ Programming
    Replies: 2
    Last Post: 07-26-2007, 10:57 AM
  4. system() function.
    By Munkey01 in forum C++ Programming
    Replies: 3
    Last Post: 12-24-2002, 03:15 PM
  5. System Function
    By neva4getme in forum C Programming
    Replies: 1
    Last Post: 04-18-2002, 09:20 AM