Link to home
Start Free TrialLog in
Avatar of formi
formiFlag for Switzerland

asked on

opening windows-explorer with ftp-folder

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
Avatar of RaithZ
RaithZ
Flag of United States of America image

I believe explorer uses Internet explorer to handle FTP so you might need to call iexplorer.exe instead of explorer.
Avatar of formi

ASKER

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.
Avatar of Sinisa Vuk
Instead of 'explore' must be 'open':
http://support.microsoft.com/kb/224816
More examples:
http://www.oehive.org/node/521
Avatar of formi

ASKER

As I wrote I don't want to open the browser, but the windows-explorer!
ASKER CERTIFIED SOLUTION
Avatar of Sinisa Vuk
Sinisa Vuk
Flag of Croatia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of formi

ASKER

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)