AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Cmd prompt hook?

Ein Thema von Razor · begonnen am 5. Okt 2009 · letzter Beitrag vom 6. Okt 2009
Antwort Antwort
Razor
(Gast)

n/a Beiträge
 
#1

Cmd prompt hook?

  Alt 5. Okt 2009, 14:37
Hello All,

Basically I am creating a program that uses the command prompt to execute some commands, its just a delphi program to return anything that comes from the console window.Any information would be 10X thankfull.I need some information as i am making a terminal sort of like mac osx has.Like but not the same.

Many thanks
  Mit Zitat antworten Zitat
Benutzerbild von alleinherrscher
alleinherrscher

Registriert seit: 8. Jul 2004
Ort: Aachen
797 Beiträge
 
Delphi XE2 Professional
 
#2

Re: Cmd prompt hook?

  Alt 5. Okt 2009, 14:58
Hi, i think that you should use pipes for this problem. You can find some source in this forum, for example:

http://www.delphipraxis.net/internal...pipereadthread

and here:

http://www.delphipraxis.net/download.php?id=10863
„Software wird schneller langsamer als Hardware schneller wird. “ (Niklaus Wirth, 1995)

Mein Netzwerktool: Lan.FS
  Mit Zitat antworten Zitat
Razor
(Gast)

n/a Beiträge
 
#3

Re: Cmd prompt hook?

  Alt 5. Okt 2009, 15:18
Thank you very much...
  Mit Zitat antworten Zitat
tirex1

Registriert seit: 31. Jan 2008
7 Beiträge
 
#4

Re: Cmd prompt hook?

  Alt 6. Okt 2009, 08:13
Hallo.
Hat jemand eine Idee, warum ich unter Windows 7 mit Delphi 2010 folgendes Resultat, siehe Screenshot, bekomme?

Gruß
tirex1
Miniaturansicht angehängter Grafiken
cmd_661.jpg  
  Mit Zitat antworten Zitat
Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.755 Beiträge
 
Delphi 10.4 Sydney
 
#5

Re: Cmd prompt hook?

  Alt 6. Okt 2009, 08:25
Guten Morgen,

schaut es wie zwei TEdit und ein TMemo.
Das TMemo wird dazu benutzt die Ausgabe
der Kommandos darzustellen.

Im Post #2 sollte eigentlich stehen wie
das zu bewerkstelligen ist.

Grüße
Klaus
Klaus
  Mit Zitat antworten Zitat
Benutzerbild von DeddyH
DeddyH

Registriert seit: 17. Sep 2006
Ort: Barchfeld
27.542 Beiträge
 
Delphi 11 Alexandria
 
#6

Re: Cmd prompt hook?

  Alt 6. Okt 2009, 08:29
Könnte es sein, dass das an Unicode liegt? Der Ausgabestring müsste als AnsiString deklariert und ggf. noch mit OEMToChar nachbearbeitet werden. Aber da ich kein Delphi 2010 habe, sind das nur Vermutungen.
Detlef
"Ich habe Angst vor dem Tag, an dem die Technologie unsere menschlichen Interaktionen übertrumpft. Die Welt wird eine Generation von Idioten bekommen." (Albert Einstein)
Dieser Tag ist längst gekommen
  Mit Zitat antworten Zitat
Razor
(Gast)

n/a Beiträge
 
#7

Re: Cmd prompt hook?

  Alt 6. Okt 2009, 08:30
The example works with windows 7 x64 one that is shown on swissdelphicenter.
  Mit Zitat antworten Zitat
tirex1

Registriert seit: 31. Jan 2008
7 Beiträge
 
#8

Re: Cmd prompt hook?

  Alt 6. Okt 2009, 09:21
Danke Euch. Der Hinweis mit Unicode war korrekt. Des Rätsels Lösung ist PAnsiChar.

Gruß
tirex1
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:29 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz