Autor Beitrag
Generic
ontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 153

Win Xp,Win 2000,
D3 und D7
BeitragVerfasst: Sa 20.11.04 21:05 
Hi Leute,
da ich Delphi fast noch gar nich kann.....
würde mir jemand mal den Code sagen für ein Button über das man z.b die Festplatte C:\...
öffnen kann?????
Danke

Generic
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Sa 20.11.04 21:13 
Meinst du sowas?

ausblenden Delphi-Quelltext
1:
  winexec('explorer C:\', SW_SHOWNORMAL);					


AXMD
Generic Threadstarter
ontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 153

Win Xp,Win 2000,
D3 und D7
BeitragVerfasst: Sa 20.11.04 22:48 
Ja genau so was !! :lol:


Generic
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 21.11.04 20:25 
Nimm aber bitte nicht WinExec, das wurde schon seit Windows95 von Microsoft als obsolet gekennzeichnet und ist nur noch wegen der Kompatibilität zu 16-Bit Programmen vorhanden. Nimm statt dessen ShellExecute.
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: So 21.11.04 20:37 
Und streng genommen kann man die Festplatte überhaupt nicht öffnen ...

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mo 22.11.04 08:28 
@Chef: können schon, aber nicht auf Software-Basis ^^

AXMD
ScorpionKing
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1150

Win XP

BeitragVerfasst: Mo 22.11.04 19:19 
die funktion ist doch easy.
hat aber jemand eine variante mit shellexecute! hab schon probiert, klappt bei mir nicht!

_________________
Aus dem Urlaub zurück!
herzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 168

WINXP pro, SUSE Linux 9.0
D7 Pers.
BeitragVerfasst: Mo 22.11.04 19:32 
Meinste du
ausblenden Delphi-Quelltext
1:
  ShellExecute(Handle,'open',PChar(''),PChar(''),PChar('C:\Programme'),SW_SHOW);					


Klappt bei mir wunderbar :)
ScorpionKing
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1150

Win XP

BeitragVerfasst: Mo 22.11.04 19:36 
ach so. ich hab immer den ordner als parameter bei der explorer.exe angegeben! :wink:

_________________
Aus dem Urlaub zurück!
Generic Threadstarter
ontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 153

Win Xp,Win 2000,
D3 und D7
BeitragVerfasst: Mo 22.11.04 20:02 
@SKing
gut das es viele Leute gibt die Delphi besser könen als du sonst würde die ganze Welt unter deinem Terror Leiden :lol:
ScorpionKing
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1150

Win XP

BeitragVerfasst: Di 23.11.04 19:13 
@Generic: Beleidigen kannste jemand anderes!

_________________
Aus dem Urlaub zurück!
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Di 23.11.04 19:16 
Das sind genau die Postings, die uns bei Euch beiden nicht wirklich gut gefallen! :evil:

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
ScorpionKing
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1150

Win XP

BeitragVerfasst: Mi 24.11.04 13:13 
Jetzt noch mal zum Thema: was ist eigentlich der unterschied zwischen winexec und exec?

_________________
Aus dem Urlaub zurück!