AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Win32/Win64 API (native code) Delphi CreateProcess + XCOPY + Pipes = HILFE!!!
Thema durchsuchen
Ansicht
Themen-Optionen

CreateProcess + XCOPY + Pipes = HILFE!!!

Ein Thema von FritzAT · begonnen am 25. Aug 2007 · letzter Beitrag vom 26. Aug 2007
 
FritzAT
(Gast)

n/a Beiträge
 
#1

CreateProcess + XCOPY + Pipes = HILFE!!!

  Alt 25. Aug 2007, 21:36
Hallo Leute!

Ich suche eine möglichkeit(seit 4 Tagen) mithilfe von pipes die ausgabe von
XCOPY /? in ein memo zu "schieben".
Es funktionieren dir /?, set /?, copy /?,...

WARUM funktioniert das mit XCOPY nicht?

Benutze folgenden code:

Delphi-Quellcode:
if CreateProcess
        (nil, // pointer to name of executable module
// FUNKTIONIERT
// PChar('cmd.exe /c copy /?), // pointer to command line string
// FUNKIONIERT NICHT(WAAARUM???)
         PChar('cmd.exe /c xcopy /?), // pointer to command line string
nil, // pointer to process security attributes
nil, // pointer to thread security attributes
True, // handle inheritance flag
0, // creation flags
nil, // pointer to new environment block
nil, // pointer to current directory name
start, // pointer to STARTUPINFO
procInfo) // pointer to PROCESS_INFORMATION
  Mit Zitat antworten Zitat
 


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 21:45 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