home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20263 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  678 b 

  1. Path: sparky!uunet!ukma!cs.widener.edu!dsinc!ub!acsu.buffalo.edu!zshi
  2. From: zshi@acsu.buffalo.edu (Zhixin Shi)
  3. Newsgroups: comp.lang.c
  4. Subject: Where does system("cd ./sudir") go ?
  5. Message-ID: <C1JMDn.9Gw@acsu.buffalo.edu>
  6. Date: 28 Jan 93 02:46:35 GMT
  7. Sender: nntp@acsu.buffalo.edu
  8. Organization: UB
  9. Lines: 9
  10. Nntp-Posting-Host: autarch.acsu.buffalo.edu
  11.  
  12. Hi, there,
  13.     I tried to make a program using system call to change dir, but when
  14. I use
  15.             system("cd ./sudir")
  16. it looks like going into the subdir then come back when the program
  17. finished.
  18.     Is there any idea how to make the program stay into the subdir or 
  19. simply using some other calls to do this?
  20.     Thanks.
  21.