winexec('command.com /k del a.dll' ,sw_show) ;
解决方案 »
- 如何实现支持多语言、多环境的Delphi程序
- 急問: 請問有人用Delphi寫過對Godex EZ1100條碼打印機的指令調用嗎
- 如何把10进制转化成16进制保存在固定长度的四个字节中
- 安装了VssConneXion,但是check in后仔麽没变化啊?
- 狂郁闷,说得好既给分,不用写代码的。
- 高分求助!我想在Delphi7用NMHTTP,但为何没有FastNet组件
- 面板问题,高手帮忙
- 真的有点厌倦了这样的生活……
- 用delphi6做过属性编辑器的高手请进!
- 我公司开发的软件著作权被别人申请了!太气愤了,程序员都是弱势群体吗?我就不信随便谁都能欺负
- 一个实用而又不常见的问题
- 急需delphi4.0和vb4.0,要分/rmb均可
if (OpenDialog1.Execute())
{
if (FileExists(OpenDialog1.FileName))
DeleteFile(OpenDialog1.FileName);
}
);
ParameterslpFileNamePoints to a null-terminated string that specifies the file to be deleted. Return ValuesIf the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError. ResIf an application attempts to delete a file that does not exist, the DeleteFile function fails.
Windows 95: The DeleteFile function deletes a file even if it is open for normal I/O or as a memory-mapped file. To prevent loss of data, close files before attempting to delete them.
Windows NT: The DeleteFile function fails if an application attempts to delete a file that is open for normal I/O or as a memory-mapped file.
To close an open file, use the CloseHandle function.