Autor Beitrag
Sauger Chris
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: Do 27.07.06 19:00 
hallo

und zwar frage ich mich wie ich es schaffe das mein konsolen programm auf -p reagiert also beispiel so:


c:\sortier.exe -p postleitzahl.txt



so wie stelle ich das an , hoffe mir hilft einer das große geheimnis zu lüften

ich danke allen die hier posten und mir helfen.


danke chris
sekzero
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 57



BeitragVerfasst: Do 27.07.06 19:51 
Also ich würde das so machen

ausblenden Delphi-Quelltext
1:
2:
3:
 If (ParamCount>0) and
    (FileExists(ParamStr(1))) then
   Memo1.Lines.LoadFromFile(ParamStr(1));  //musst du natürlich ersetzen, wie was wohin geladen werden soll.



Einfach das Programm zum Beispiel mit dem Parameter "c:\postleitzahl.txt" öffnen.
Sauger Chris Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: Do 27.07.06 19:53 
jo thx habs gerade im board gefunden *schäm

nicht genau geschaut :)


thx