AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Finde keinen Fehler

Ein Thema von TheMiller · begonnen am 20. Mai 2003 · letzter Beitrag vom 20. Mai 2003
Antwort Antwort
Tom

Registriert seit: 7. Jan 2003
318 Beiträge
 
RAD-Studio 2009 Pro
 
#1
  Alt 20. Mai 2003, 23:53
Zitat von Chakotay1308:
Korrekt wäre daher:
ShellExecute(Handle, 'open', PChar(Pfad), nil, nil, SW_SHOW);
Der PSDK sagt dazu
Zitat:
...
lpOperation
...
NULL
For systems prior to Microsoft® Windows® 2000, the default verb is used if it is valid and available in the registry. If not, the "open" verb is used.

For Windows 2000 and later systems, the default verb is used if available. If not, the "open" verb is used. If neither verb is available, the system uses the first verb listed in the registry.
Korrekt ist demnach für EXE-Dateien 'open' oder nil. Für normale Dateien ist auf jeden Fall nil korrekt, da es nicht für jede registriete Dateiendung den Registryeintrag ...Shell\Open\Command gibt. Auch diese Dateien können mit ShellExecute "gestartet" werden, sofern man nicht 'open' sondern nil angibt.
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:40 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz