Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 03-03-2004, 11:59 AM   #1
St0rm
Disabled
 
Join Date: Nov 2003
Posts: 105
Default [Delphi] No dir listing after pre list event?

I wrote a program in delphi that is triggered on the pre list event:

[FTP_Pre-Command_Events]
list = EXEC C:\test\test.exe

Code:
begin
  writeln('test123')
end.
All the script does is output a string to the client's window. So when a user goes into a dir, the string shows up, but no dir listing is received:

Code:
[R] test123
[R] 150 Opening ASCII mode data connection for directory listing.
And it just sits there, doing nothing. When I change the code a little bit:

Code:
begin
  writeln('!putlog test123')
end.
Now it works fine. test123 is written to log and a dir listing is received. Kinda weird, right?

Any suggestions?
St0rm is offline  
Old 03-03-2004, 12:01 PM   #2
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

I guess LIST is cancelled if you return non-zero.
Try to force 0 as the exit code.
Harm is offline  
Old 03-03-2004, 12:02 PM   #3
St0rm
Disabled
 
Join Date: Nov 2003
Posts: 105
Default

Why would the first program not return zero and the second would?
St0rm is offline  
Old 03-03-2004, 12:07 PM   #4
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

writeln('150-something')

you're confusing the ftp client...
Mouton is offline  
Old 03-03-2004, 12:10 PM   #5
St0rm
Disabled
 
Join Date: Nov 2003
Posts: 105
Default

Works. Thx.
St0rm is offline  
Closed Thread

Tags
dir, end, list, listing, test123

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transfer/Queue Buttons greyed out... Paperboy General Discussion 3 08-27-2004 08:09 PM


All times are GMT -5. The time now is 10:08 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)