--- Rich Cooper <[EMAIL PROTECTED]> wrote:
> I'm trying to pipe a DOS command to a file using a
> ShellExecute,
> but it doesn't create the output file. Here's the
Rich,
try
pchar('d:\harbor.txt'),nil,pchar('d:\')
Wim
> code:
> var D : string;
> ...
> D := GetStartDir;
> ShellExecute(0,pChar('ipconfig/all >
> '),pchar('harbor.txt'),nil,pChar(D),SW_SHOWNORMAL);
> ...
>
> but no file named 'harbor.txt' gets created. Does
> anyone know how to
> fix this?
>
> Thanks,
> Rich
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi