Solved

opening windows-explorer with ftp-folder

Posted on 2013-05-28
6
935 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
Comment Utility
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
Comment Utility
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 25

Expert Comment

by:Sinisa Vuk
Comment Utility
Instead of 'explore' must be 'open':
http://support.microsoft.com/kb/224816
More examples:
http://www.oehive.org/node/521
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:formi
Comment Utility
As I wrote I don't want to open the browser, but the windows-explorer!
0
 
LVL 25

Accepted Solution

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

Author Closing Comment

by:formi
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
A while back when OPSMGR 2012 was released we were very excited about getting it into our environment and upgrading our 2007 implementation,  we started our planning and we then proceeded with our implementation. All went as planned & our system …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

15 Experts available now in Live!

Get 1:1 Help Now