Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

opening windows-explorer with ftp-folder

Posted on 2013-05-28
6
Medium Priority
?
1,067 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 7

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
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 

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 1500 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

670 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