Autor Beitrag
King_Crasher
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37

WIN XP
Delphi 2003
BeitragVerfasst: So 12.02.06 17:33 
Hallo...

Gibt es eine möglichkeit ein Programm, z.B. Nero, aufzurufen und zwar über einen Button???


Moderiert von user profile iconChristian S.: Topic aus VCL (Visual Component Library) verschoben am So 12.02.2006 um 17:37
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 12.02.06 17:35 
Joah.

Mit shellexecute (einfach nach suchen) die Nero-EXe starten.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
King_Crasher Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37

WIN XP
Delphi 2003
BeitragVerfasst: So 12.02.06 17:43 
Danke
Newguy
Hält's aus hier
Beiträge: 5



BeitragVerfasst: Do 25.05.06 11:21 
bei mir funzt. shellexecute nicht!!!

wiso?

pls help
Watsch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 97

Win98 SE
D3 Prof, D4 C/S
BeitragVerfasst: Do 25.05.06 11:22 
Was genau funktioniert denn nicht? Hast Du auch die ShellAPI beim USES-Abschnitt eingebunden?
leoschabel
Hält's aus hier
Beiträge: 10

WIN 2000
Delphi 2007 Prof.
BeitragVerfasst: Di 06.06.06 13:15 
Titel: FMXUtils tuen es auch...
Einfach die Datei FMXUtils.pas(Irgendwo im Demo-Verzeichnis) in den Delphi-Unit-Ordner kopieren(Ordner lib), die Datei bei uses angeben und dfann die Funktion ExecuteFile benutzen(Syntax wir ja angezeigt)
hoffe es tut... :wink:
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Di 06.06.06 13:25 
user profile iconNewguy hat folgendes geschrieben:
bei mir funzt. shellexecute nicht!!!

wiso?

pls help

Sehr aussagekräftig. Wie wärs mit Posten der Fehlermeldung?
ExecuteFile geht auch, ist sogar einfacher zu benutzen.

ShellExecute benutzt man so:
ausblenden Delphi-Quelltext
1:
ShellExecute(handle,PChar('open'),PChar('notepad.exe'),PChar('C:\Windows\win.ini'),PChar('C:\Windows'),SW_SHOW);					


Also im Klartext:
ausblenden Delphi-Quelltext
1:
2:
ShellExecute(handle,PChar('open'),PChar('programmname'),PChar('parameter'),PChar('Verzeichnis
des Programms'
),SW_SHOW);


Zu weiteren Informationen: Suche in der Entwickler-Ecke SHELLEXECUTE.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
Deus4ever
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Do 15.06.06 14:10 
user profile iconTimosch hat folgendes geschrieben:

ShellExecute benutzt man so:
ausblenden Delphi-Quelltext
1:
ShellExecute(handle,PChar('open'),PChar('notepad.exe'),PChar('C:\Windows\win.ini'),PChar('C:\Windows'),SW_SHOW);					


Also im Klartext:
ausblenden Delphi-Quelltext
1:
2:
ShellExecute(handle,PChar('open'),PChar('programmname'),PChar('parameter'),PChar('Verzeichnis
des Programms'
),SW_SHOW);


Zu weiteren Informationen: Suche in der Entwickler-Ecke SHELLEXECUTE.


Wollte mich nur mal bedanken für den Post, hat mir sehr geholfen =)
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Fr 16.06.06 13:25 
Keine Ursache =)

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
Newguy
Hält's aus hier
Beiträge: 5



BeitragVerfasst: Mo 02.10.06 15:46 
Titel: ???
sorry das ich so ungenaue aussagen mache!
bin noch noob.

was muss ich bei parameter angeben?? (bzw was macht der parameter)?

pls answer
DarkLord05
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 449

WinXP Pro SP2
Opera; Delphi 3 Pro; Delphi 2005, Turbo Delphi, dev-c++, Eclipse, MS Visual Studio .NET 2003, MS Visual C++
BeitragVerfasst: Mo 02.10.06 15:54 
Man kann Programme mit parametern starten um ihnen direkt befehle zu geben. Ist Programmspezifisch.
Manche Brennerprogramme, wie z.B. Alcohol 120%, haben ein Consolenprogramm dabei, das man mit Parametern gleich starten kann.
Oder auch z.B. die "net.exe". net send 127.0.0.1 test

in diesem fall sind "send" "127.0.0.1" und "test" parameter.

Kannst also einfach "" eintragen wenn du einfach nur ein Programm starten willst.