Einzelnen Beitrag anzeigen

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