Autor Beitrag
Maisinator
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 167

Win XP HE SP3, Win Vista HP SP2
Delphi ;-)
BeitragVerfasst: Di 15.09.09 14:36 
hallo,

ich habe mal ne frage, ob es grundsätzlich möglich ist, an ein mit shellexecute ausgeführtes programm daten weiterzugeben, wie z.b. bei einer installationsdatei die seriennummer usw...
(Soll jetzt aber kein Prog werden, um programme automatisch per seriennummer zu cracken; mehr sone art admininstaller) und wie mach ich das am bester?

THX


Moderiert von user profile iconNarses: Topic aus VCL (Visual Component Library) verschoben am Di 15.09.2009 um 16:39
platzwart
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1054
Erhaltene Danke: 78

Win 7, Ubuntu 9.10
Delphi 2007 Pro, C++, Qt
BeitragVerfasst: Di 15.09.09 14:52 
Ja, einfach als Parameter übergeben?

_________________
Wissenschaft schafft Wissenschaft, denn Wissenschaft ist Wissenschaft, die mit Wissen und Schaffen Wissen schafft. (myself)
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 15.09.09 15:01 
Das funktioniert aber nur, wenn das Programm auch Parameter entgegennehmen kann. Wird die Seriennumer in einem eingabefeld erwartet, funktioniert da snicht mehr.
platzwart
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1054
Erhaltene Danke: 78

Win 7, Ubuntu 9.10
Delphi 2007 Pro, C++, Qt
BeitragVerfasst: Di 15.09.09 15:27 
Er wollte ja nur wissen, ob es grundsätzlich möglich ist...

_________________
Wissenschaft schafft Wissenschaft, denn Wissenschaft ist Wissenschaft, die mit Wissen und Schaffen Wissen schafft. (myself)
Maisinator Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 167

Win XP HE SP3, Win Vista HP SP2
Delphi ;-)
BeitragVerfasst: Di 15.09.09 15:28 
aha, und wie würd ich das rein theoretisch als parameter übergeben?
und rein theoretisch, wenn ich zwischen zwei meiner progs parameter "hinundherschieben" will, wie muss ich das dann machen, dass das zweite prog die parameter endgegennehmen kann?
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Di 15.09.09 15:37 
ausblenden Delphi-Quelltext
1:
ShellExecute(Handle, 'open', 'C:\programm.exe', '-Parameter1 -Parameter2', nil, SW_SHOW);					
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 15.09.09 15:41 
Moin!

user profile iconMaisinator hat folgendes geschrieben Zum zitierten Posting springen:
und rein theoretisch, wenn ich zwischen zwei meiner progs parameter "hinundherschieben" will, wie muss ich das dann machen, dass das zweite prog die parameter endgegennehmen kann?
Such mal nach Suche in: Delphi-Forum, Delphi-Library IPC oder z.B. Suche in: Delphi-Forum, Delphi-Library WM_COPYDATA. Geht natürlich auch per Netzwerkverbindung.

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.