Thread: Ch_mod

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    7

    Question Ch_mod

    Hi,

    I have written an FTP program using MFC. I can upload a file no problem, but does anyone know how to set/change to file permissions on a UNIX server, to enable to file to be written or executed by others.

    I can set the file permissions locally by using,


    CString m_fileName = "c:/my documents/file.txt";

    _chmod( m_fileName, _S_IREAD | _S_IEXEC );


    but how can I specify the path to the file on the sever?

    Any help would be great! Thanks

    Magic

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    164
    // Gliptic

Popular pages Recent additions subscribe to a feed