Maybe you have a file permission problem. Your service is logged under system account or another account. Check that it has the required permissions.
> Also a side problem I'm having is: do you know of a simple way to parse the > results from the DIR command into a simple list of filenames, sizes, There is source code available at http://www.smatters.com/ics/. Rather old but still working. -- [EMAIL PROTECTED] http://www.overbyte.be ----- Original Message ----- From: "Nikolay Simeonov" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, April 26, 2005 1:44 AM Subject: [twsocket] FTP client and windows service problem > Hello Francois, > > I'm writing a service and when I try to get the directory FTP1.Dir returns > false. How can I pinpoint the problem and is there a way to figure out why > it's returning false? > > I'm using it in non-multithread mode. What's more curious about the code is > the fact it works when I use the same unit from a normal windows program. > And from the service it's crashing. Do you have any ideas what could > possibly cause the error? > > Also a side problem I'm having is: do you know of a simple way to parse the > results from the DIR command into a simple list of filenames, sizes, > attributes (directory or a file) and timestamp? All I'm getting is a text > file and currently I hardcoded the parsing, and that isn't listed anywhere > as best practice, but all I wanted is to get it working quickly and clean it > up later. > > Thanks in advance for any help and ideas, > Nikolay Simeonov > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
