Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Networking and Web Programming
»
Lnet Chmod via TLFTPClientComponent
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
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
Is there a function calle...
by
OC DelGuy
[
Today
at 05:12:18 am]
Controls inside the form ...
by
Ecsa
[
Today
at 04:02:37 am]
Theo's Searchbar plugin f...
by
Curt Carpenter
[
Today
at 03:54:33 am]
Search panel plugin for t...
by
Curt Carpenter
[
Today
at 03:51:49 am]
Question about GTK2 text ...
by
tomitomy
[
Today
at 02:25:17 am]
lazreport load image from...
by
dseligo
[
Today
at 01:41:08 am]
pls advice for good style...
by
dseligo
[
Today
at 01:19:35 am]
error release when memo.s...
by
VTwin
[
Today
at 12:59:28 am]
Best way to parse file.
by
Kays
[
Today
at 12:56:50 am]
capture apl_exec stdout
by
440bx
[
Today
at 12:28:28 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Lnet Chmod via TLFTPClientComponent (Read 4611 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