Solved

opening windows-explorer with ftp-folder

Posted on 2013-05-28
6
1,013 Views
Last Modified: 2013-05-28
Hi

to open the windows-explorer with a specific folder I use
  ShellExecute(Application.Handle,
PChar('explore'),PChar([b]'C:\MyFolder'[/b]),nil,nil,SW_SHOWNORMAL);

Open in new window


How can I open it with a ftp-folder?
  ShellExecute(Application.Handle,
PChar('explore'),PChar([b]'ftp://www.myDomain/MyFolder'[/b]),nil,nil,SW_SHOWNORMAL);

Open in new window

does not work.

Thanks, Peter
0
Comment
Question by:formi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 6

Expert Comment

by:RaithZ
ID: 39202395
I believe explorer uses Internet explorer to handle FTP so you might need to call iexplorer.exe instead of explorer.
0
 

Author Comment

by:formi
ID: 39202483
thanks for th hint. It doesn't work and I think it must be explorer (it should be the same as if I type the ftp-address in the windows-explorer. This way I can open the folder and manage data in it.
0
 
LVL 27

Expert Comment

by:Sinisa Vuk
ID: 39202605
Instead of 'explore' must be 'open':
http://support.microsoft.com/kb/224816
More examples:
http://www.oehive.org/node/521
0
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 

Author Comment

by:formi
ID: 39202627
As I wrote I don't want to open the browser, but the windows-explorer!
0
 
LVL 27

Accepted Solution

by:
Sinisa Vuk earned 500 total points
ID: 39203011
Then
ShellExecute(Application.Handle, 'open', 'explorer.exe',  PChar('ftp://loginname:yourpassword@nameofserver'), nil, SW_SHOWNORMAL);
should be fine.
0
 

Author Closing Comment

by:formi
ID: 39203612
you gave me the right way to try ('open', 'explorer.exe'. It works now with

ShellExecute(Form1.Handle,'open','explorer.exe',pChar('/e, ftp://www.myDomain/myFolder'),'',SW_SHOWNORMAL)
0

Featured Post

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question