Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

nighttrain

those were my questions - anyway thanks.
martin

Re: Get pictures path

nighttrain wrote:

I am using winscp to transfer files by ftp. Couple days ago i developed new module to show pictures in pictures box control. What i would like to achieve is to list picture's paths inside listbox or whatever else and then when click on this path to be able to open the picture in picturebox. The point is pictures are on remote location on my ftp and i have no idea is it possible using winscp (ftp) to use get their path and then using the paths to show up given picture inside picture box. Anyone has idea is it possible or not?

Your duplicate (and answered) post on Stack Overflow:
https://stackoverflow.com/q/32945059/850848
martin

Re: Directory delete questions

nighttrain wrote:

Hi,
Have to questions cause can;t find it:

1) How to check if directory contains anything e.g folder or files, wahetever... or is it empty

1) How to remove emopty directory?

2) How to remove directory even if there content.

For instance for creating directory i am using below function:

Public Sub CreateDirectory(path As String)

        If session IsNot Nothing Then
            session.CreateDirectory(path)
        End If
    End Sub

Your duplicate (and answered) post on Stack Overflow:
https://stackoverflow.com/q/32942620/850848
nighttrain

Get pictures path

I am using winscp to transfer files by ftp. Couple days ago i developed new module to show pictures in pictures box control. What i would like to achieve is to list picture's paths inside listbox or whatever else and then when click on this path to be able to open the picture in picturebox. The point is pictures are on remote location on my ftp and i have no idea is it possible using winscp (ftp) to use get their path and then using the paths to show up given picture inside picture box. Anyone has idea is it possible or not?
nighttrain

Directory delete questions

Hi,
Have to questions cause can;t find it:

1) How to check if directory contains anything e.g folder or files, wahetever... or is it empty

1) How to remove emopty directory?

2) How to remove directory even if there content.

For instance for creating directory i am using below function:

Public Sub CreateDirectory(path As String)

        If session IsNot Nothing Then
            session.CreateDirectory(path)
        End If
    End Sub