This should do the trick:

Boolean ftpSetCurrentDirectory(str _name)
{
    DLLFunction setCurrentDirectory = new DLLFunction(winInetDLL, 'FtpSetCurrentDirectoryA');
    ;

    if (connectHandle == 0)
        return false;

    setCurrentDirectory.returns(ExtTypes::DWord);

    setCurrentDirectory.arg(ExtTypes::DWord,
                            ExtTypes::String);

    if (setCurrentDirectory.call(connectHandle, _name) == 0)
        return false;
    else
        return true;
}

Regards
Jan Stelsig Dahlsgaard
Fujitsu DK

________________________________

Fra: [email protected] [mailto:[EMAIL PROTECTED] På vegne af neih2lille
Sendt: 5. januar 2006 18:35
Til: [email protected]
Emne: [development-axapta] Re: How to send file to FTP


hi,
your code is OK, but how can I change directory on FTP server?
code example will appreciate.

regards,
thanks

yannick










SPONSORED LINKS
Computer part <http://groups.yahoo.com/gads?t=ms&k=Computer+part&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=yLpvcLTIDJ5FTkRJGsO11w>        Programming languages <http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=cuhEClK4dU4wapXFmKisbQ>        Microsoft axapta <http://groups.yahoo.com/gads?t=ms&k=Microsoft+axapta&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=yfeG_U6QaLfPOZZIud02Fg>       
Support exchange <http://groups.yahoo.com/gads?t=ms&k=Support+exchange&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=hy8yRGMzrmxdphyITTUeqA>       

________________________________

YAHOO! GROUPS LINKS


     
*      Visit your group "development-axapta <http://groups.yahoo.com/group/development-axapta> " on the web.
       
*      To unsubscribe from this group, send an email to:
      [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
       
*      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .


________________________________




[Non-text portions of this message have been removed]






YAHOO! GROUPS LINKS




Reply via email to