Windows Exporer Shell

G

Guest

Hello - I need some code that will open a windows exporer window with an FTP
session started. I would like for the FTP folders to be in the explore pane
and the contents of a local folder (I:\) to be in the contents pane.

I have found documentation to shell a windows exporer window - but I'm not
sure I can start an FTP session with shell. Can something be added to this
to start an FTP session?:
Shell "C:\WINDOWS\explorer.exe I:\", vbNormalFocus

I have found documentation on starting an FTP session with wininet and but
not I'm not sure I can open a windows explorer window with wininet.

Is there a way to both at the same time?
 
J

Jake Marx

Hi Mike,

Does this get you closer to what you're looking to do? I'm not sure how you
could extend this to show different content in another pane of Explorer.
You may have to resort to API calls for something like that. If you want to
play around with this, you can set a reference to "Microsoft Shell Controls
and Automation" via Tools | References in the VBE.

Sub gBrowseFTPSite(rsUsername As String, _
rsPassword As String, rsURL As String)
Dim sh As Object

Set sh = CreateObject("Shell.Application")

sh.Explore "ftp://" & rsUsername & ":" & rsPassword & "@" & rsURL

Set sh = Nothing
End Sub

--
Regards,

Jake Marx
www.longhead.com


[please keep replies in the newsgroup - email address unmonitored]
 
G

Guest

Jake - Thank you! That gets me closer. I will continue to research how to
specify a folder in the contents pane.

--
Thanks Again,
Mike


Jake Marx said:
Hi Mike,

Does this get you closer to what you're looking to do? I'm not sure how you
could extend this to show different content in another pane of Explorer.
You may have to resort to API calls for something like that. If you want to
play around with this, you can set a reference to "Microsoft Shell Controls
and Automation" via Tools | References in the VBE.

Sub gBrowseFTPSite(rsUsername As String, _
rsPassword As String, rsURL As String)
Dim sh As Object

Set sh = CreateObject("Shell.Application")

sh.Explore "ftp://" & rsUsername & ":" & rsPassword & "@" & rsURL

Set sh = Nothing
End Sub

--
Regards,

Jake Marx
www.longhead.com


[please keep replies in the newsgroup - email address unmonitored]


Mike said:
Hello - I need some code that will open a windows exporer window with
an FTP session started. I would like for the FTP folders to be in
the explore pane and the contents of a local folder (I:\) to be in
the contents pane.

I have found documentation to shell a windows exporer window - but
I'm not sure I can start an FTP session with shell. Can something be
added to this to start an FTP session?:
Shell "C:\WINDOWS\explorer.exe I:\", vbNormalFocus

I have found documentation on starting an FTP session with wininet
and but not I'm not sure I can open a windows explorer window with
wininet.

Is there a way to both at the same time?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top