Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Networking and Web Programming
»
Lnet Chmod via TLFTPClientComponent
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
CheckComboBox Item Width
by
Joanna
[March 23, 2023, 10:52:23 pm]
An ASCII logo for Pascal ...
by
Fred vS
[March 23, 2023, 10:47:15 pm]
Are Tstreams always bette...
by
Warfley
[March 23, 2023, 10:31:54 pm]
Error: This kind of prope...
by
maicounir
[March 23, 2023, 10:20:31 pm]
SQLite - DBGrid - text fi...
by
Hemptwister
[March 23, 2023, 10:15:14 pm]
QT5 PageControl Tab sizes
by
TheMouseAUS
[March 23, 2023, 09:53:52 pm]
[solved] How to have a ge...
by
PascalDragon
[March 23, 2023, 09:45:44 pm]
CompareText improvement
by
PascalDragon
[March 23, 2023, 09:39:06 pm]
Firebird 4 - "SUM" with w...
by
d4eva
[March 23, 2023, 09:23:48 pm]
Publish multiple projects
by
Ten_Mile_Hike
[March 23, 2023, 09:21:07 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Lnet Chmod via TLFTPClientComponent (Read 4627 times)
minusk
Newbie
Posts: 2
Lnet Chmod via TLFTPClientComponent
«
on:
June 01, 2010, 05:32:22 pm »
Hello
I work with lnet, but I do not see how to change the chmod in ftp a file, if anyone could help me.
Thank you in advance
Logged
minusk
Newbie
Posts: 2
Re: Lnet Chmod via TLFTPClientComponent
«
Reply #1 on:
June 02, 2010, 04:55:43 am »
Hello
I just found the solution I give in case it will help other people.
Quote
FTP.SendMessage('SITE CHMOD 755 ' + LabelNameExe.Caption + #13#10);
Good day
Logged
Almindor
Sr. Member
Posts: 412
Re: Lnet Chmod via TLFTPClientComponent
«
Reply #2 on:
June 03, 2010, 02:42:10 pm »
CHmod wasn't aadded to the FTP commands list yet so yes, the easiest way to do it is to send the commandstring directly. I'll expand the commands for CHMOD and others file operations in 0.7.x
You can temporarily also do it by modifying TLFTPClient.EvaluateAnswer + adding the required enum and procedure for issueing the command. Then lNet will take care of the reply as well and hold the status in the state machine.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Networking and Web Programming
»
Lnet Chmod via TLFTPClientComponent
TinyPortal
© 2005-2018