Autor Beitrag
ByteKiller
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 32

Win Vista, XP Pro SP2
Delphi 7 (Delphi 2005)
BeitragVerfasst: Di 31.10.06 08:52 
Hi,

ich muss bald meine Seminarfacharbeit abgeben und zu dieser noch ne CD. Für diese CD wollte ich ne Autostart-funktion schreiben ich hab nur kein Plan wie das gehen soll. (Nach dem Einlegen der CD soll sich ein Programm öffnen).
Kann mir da jemand weiter helfen oder gibt es ein Tutorial?

Thx & Mfg ByteKiller
Silas
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 478

Windows XP Home
Delphi 2005, RAD Studio 2007, MASM32, FASM, SharpDevelop 3.0
BeitragVerfasst: Di 31.10.06 09:10 
Das geht über eine Datei mit dem Namen "autorun.inf", die du auf die CD kopieren musst:

ausblenden Quelltext
1:
2:
3:
[autorun]
open=programm.exe
icon=symbol.ico


Dann öffnet sich beim Einlegen "programm.exe" und das CD-Laufwerk bekommt im Explorer das Symbol "symbol.ico". Die Zeile "icon=" kannst du auch weglassen. Wenn du als Symbol das Symbol von deinem Programm haben willst, schreibst du einfach "icon=programm.exe,0".

_________________
Religionskriege sind nur Streitigkeiten darüber, wer den cooleren imaginären Freund hat ;-)
ByteKiller Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 32

Win Vista, XP Pro SP2
Delphi 7 (Delphi 2005)
BeitragVerfasst: Di 31.10.06 09:26 
Danke ich werds ausprobieren!