Command doesn't work from Delphi

Giganews Newsgroups
Subject: Command doesn't work from Delphi
Posted by:  Jon Jacobs (JonJaco…@comcast.net)
Date: 27 Jun 2006

I have tried many variations of:
ShellExecute(Handle, nil, 'cmd.exe /k MKDIR Clean', nil, nil, SW_HIDE);
with or without /k (what is it for anyway) and distributing the parameters in various ways. It works fine manually in the cmd prompt, but not with shell execute (or WinExec either).

What does it take to make this work?

Thanks,
Jon

Replies