Find code

Discussion in 'C++' started by contactmayankjain@gmail.com, Jul 24, 2007.

  1. Guest

    Hi,
    can you please tell me what is wrong in this peace of code. Its not
    giving any of the error at the compilation time nor its working as I
    want it to do the things


    #include<stdio.h>
    #include<stdlib.h>

    int main(int argc, char* arcv[])
    {

    system("cd /");// Change the working directory
    system("find ./ -name arcv[1]"); //find command
    system("cd -"); // Goes back to the working directory
    return 0;

    }
     
    , Jul 24, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dan Jones

    Find::Find

    Dan Jones, Oct 7, 2004, in forum: Perl
    Replies:
    1
    Views:
    796
    Joe Smith
    Oct 8, 2004
  2. ad
    Replies:
    2
    Views:
    862
  3. Wybo Dekker
    Replies:
    1
    Views:
    366
    Yukihiro Matsumoto
    Nov 15, 2005
  4. vdvorkin
    Replies:
    0
    Views:
    414
    vdvorkin
    Feb 10, 2011
  5. vdvorkin
    Replies:
    3
    Views:
    816
    vdvorkin
    Feb 14, 2011
Loading...

Share This Page