Hello. I have to make a simple FTP server/client where you could check files, folders rename them etc...
I just need to know, how to change the working directory of the server...system(cd x), won't help since it will fork a process that will change its own directory but not the one of the server...How to change working directory of a process in C under UNIX?
Try chdir().
Hope that helps.
Edit: getcwd(); // Get Current working Directory
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment