Setting file attributes after download - WeOnlyDo Discussion board

Setting file attributes after download (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Jan, Thursday, October 13, 2005, 15:15 (6981 days ago)

Hallo,

would you like to post a code snipped how to set file attributes?

I use following construction:
pFtpCom->GetFile(vLclDir,bstrRemotePath);
// ( c: emp , /ftpfile.txt )
The file can be loadet to c: emp
Now, I would change the file RW Attributes to 0444 , how?
My construct throws an exception: (err=10060, timeout)
pFtpCom->SetAttributes(bstrRemotePath,vtMissing,vtMissing,vtMissing,_bstr_t( 0444 ));
// ( /ftpfile.txt , .... , 0444 )

What is here wrong?

Thanks
Jan
[:smile:]


Complete thread: