Solved

opening windows-explorer with ftp-folder

Posted on 2013-05-28
6
953 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
  • 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 26

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I wrote an article (http://www.experts-exchange.com/articles/2245/Anti-rootkit-software.html) some time ago with a reference to nLite  (http://www.nliteos.com/)slipstreaming software.  I recently changed that link to point to NTLite (https://www.ntl…
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

929 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now