Ch_mod

This is a discussion on Ch_mod within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I have written an FTP program using MFC. I can upload a file no problem, but does anyone know ...

  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21