ecere中采用system,Execute,ShellOpen执行DOS命令有黑色dos窗口闪现,这个体验太不好了!
有其他的执行方式吗?没有Dos窗口闪现,同时DOS命令阻塞执行?
ecere中采用system,Execute,ShellOpen执行DOS命令有黑色dos窗口闪现
Re: ecere中采用system,Execute,ShellOpen执行DOS命令有黑色dos窗口闪现
Hi janksen,
hi janksen,
If you use DualPipe, do you still get a command prompt window showing up?
Also, make sure 'Console Application' setting is off.
If you still get a command prompt box, try { output = true, input = true, error = true }
Regards,
Jerome
hi janksen,
If you use DualPipe, do you still get a command prompt window showing up?
Code: Select all
File output = DualPipeOpen({ output = true }, command);
if(output)
{
int exitCode;
while(!output.eof)
{
output.Read( ... )
}
exitCode = output.GetExitCode();
}
If you still get a command prompt box, try { output = true, input = true, error = true }
Regards,
Jerome
Re: ecere中采用system,Execute,ShellOpen执行DOS命令有黑色dos窗口闪现
编译之后,运行卡死了!代码如下,不知道为什么!
DualPipe output = DualPipeOpen({ output = true }, "adb");
if(output)
{
int exitCode;
//TempFile fileInput { };
// SetFileInput(fileInput);
while(!output.Eof())
{
//char junk[4096];
// int count = output.Read(junk, 1, 4096);
//fileInput.Write(junk, 1, count);
}
exitCode = output.GetExitCode();
delete output;
}
DualPipe output = DualPipeOpen({ output = true }, "adb");
if(output)
{
int exitCode;
//TempFile fileInput { };
// SetFileInput(fileInput);
while(!output.Eof())
{
//char junk[4096];
// int count = output.Read(junk, 1, 4096);
//fileInput.Write(junk, 1, count);
}
exitCode = output.GetExitCode();
delete output;
}