运行了,不好使,说找不到文件 commandLine := 'mode com1 9600,n,8,1'; dd := WinExec(PChar(commandLine),SW_HIDE); case dd of 0: showmessage('The system is out of memory or resources'); ERROR_BAD_FORMAT: showmessage('The .exe file is invalid (non-Win32 .exe or error in .exe image).'); ERROR_FILE_NOT_FOUND: showmessage('The specified file was not found.'); ERROR_PATH_NOT_FOUND: showmessage('The specified path was not found.'); end;
TO : dickeybird888(于伟刚) ( ) 你的方法是在2000下运行的,我说的是在98下怎样运行呢~ 2000下已经通过了,但在98下调用mode命令就不好使呢~~~ 加路径已经加了,但还是不好使直接跳到这里 ERROR_PATH_NOT_FOUND: showmessage('The specified path was not found.');
commandLine := 'mode com1 9600,n,8,1';
dd := WinExec(PChar(commandLine),SW_HIDE); case dd of
0: showmessage('The system is out of memory or resources');
ERROR_BAD_FORMAT: showmessage('The .exe file is invalid (non-Win32 .exe or error in .exe image).');
ERROR_FILE_NOT_FOUND: showmessage('The specified file was not found.');
ERROR_PATH_NOT_FOUND: showmessage('The specified path was not found.');
end;
你的方法是在2000下运行的,我说的是在98下怎样运行呢~
2000下已经通过了,但在98下调用mode命令就不好使呢~~~
加路径已经加了,但还是不好使直接跳到这里
ERROR_PATH_NOT_FOUND: showmessage('The specified path was not found.');