Subject: How to determine remote server OS?
Date: 2010-10-19 12:49:45
From: Zhuoming HUANG
Source: determine-remote-server-os
----------------------------------------------------------------------

Hello

I would like to detect the remote ftp server OS, like as Windows, Unix, etc. Because directory path format is different. ("Dir\SubDir" on Windows, "Dir/SubDir" on Unix).
I found a property "ServerOs", but I have a problem with:

        For Each info As FtpFileInfo In Me._Client.listdirectory("/")
                   ' Exception: 'ServerOs' is not a member of 'ComponentPro.IO.FileSystem'.           
                   console.writeline(info.FileSystem.ServerOs.ToString)
        Next

Could you help me?

Thanks in advance.

Zhuoming
---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index