| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: How do you set file permissions? |
| jsbragg james@skunkfarm.com From: Sand Springs, OK USA Posts: 6 Member Since: 05/08/03 |
posted June 25, 2003 11:54 AM How do you set the file permissions on a file that you've transfered? Files end up "640" after FTP.Put. I want them to be "666". Any help would be appreciated. -james |
| jsbragg james@skunkfarm.com From: Sand Springs, OK USA Posts: 6 Member Since: 05/08/03 |
posted June 25, 2003 2:11 PM Okay, This is a bit odd but it's working on my system (HP9000 HPUX ver11.0) Use ftp.put to put the file on the box Login into the box using FTP.login sever, userID, Password FTP.Command "CWD {directory}", ResStr ftp.Command "SITE CHMOD 666 {filename}", ResStr FTP.Logout Like I said this works for me, I'm not sure if this will work on every box. The commands came from the man pages on ftpd on the box. I'm not sure if they are standard. -james |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted June 25, 2003 3:02 PM Hi James, The same can be accomplished by setting the Ftp.Directory property, and calling the Ftp.Site method. -ken |
| jsbragg james@skunkfarm.com From: Sand Springs, OK USA Posts: 6 Member Since: 05/08/03 |
posted June 25, 2003 3:13 PM As I continue to dig into this control, I find more and more stuff :o) After I had muddled through the "Command" solution, I found the "Site" method in the help file. I was still using "Command" to change directories, thanks for the tip, I'll change that as well. Thanks for responding! -james |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|