判断某个文件夹是否存在是哪个函数?
procedure TMainForm.BtnOpenFileClick(Sender: TObject);
begin
IF eDIT3.Text = '' THEN
Application.MessageBox('请输入具体的目录名称,再尝试!','系统提示',mb_ok+mb_iconinformation)
else begin
if DirExists(Edit3.Text) then{这里我出错!!!!}
begin
ShellExecute(handle,'open',PChar(Edit3.Text),nil,nil,SW_SHOWNORMAL);
end
else
begin
Application.MessageBox('您所指定的目录不存在,请核对后重新输入','系统提示',
mb_ok+mb_iconinformation);
edit3.SelectAll;
Edit3.SetFocus;
end;
end;
end;
我用DirExists()函数不行啊!
procedure TMainForm.BtnOpenFileClick(Sender: TObject);
begin
IF eDIT3.Text = '' THEN
Application.MessageBox('请输入具体的目录名称,再尝试!','系统提示',mb_ok+mb_iconinformation)
else begin
if DirExists(Edit3.Text) then{这里我出错!!!!}
begin
ShellExecute(handle,'open',PChar(Edit3.Text),nil,nil,SW_SHOWNORMAL);
end
else
begin
Application.MessageBox('您所指定的目录不存在,请核对后重新输入','系统提示',
mb_ok+mb_iconinformation);
edit3.SelectAll;
Edit3.SetFocus;
end;
end;
end;
我用DirExists()函数不行啊!
解决方案 »
- delphi 引用 wmi 成员(方法)
- 缩略图画点问题
- webbrowser热键问题。
- stringgrid列着色时也标题也着没了,怎么办
- 自动投票软件源码
- 我安装Delphi6,在升级补丁2的时候,不能继续下去
- 谁有密码加密解密程序~~~~~~~~~~
- 在delphi里写代码时,有时突然鼠标光标变成漏斗形。然后硬盘响半天,不知道它在干嘛,怎样避免这种现象
- 如下添加PageControl的页?
- 高手请进,如何将一个二进制文件中的内容写到数据库表中的某个字段!
- 火急!!!!!关于Delphi7中TcpClient接收TcpServer数据的问题。
- 如果ComboBox1.text不等于空格,这句话怎么写?
begin
if DirectoryExists('c:\temp') then
begin
showmessage('exit');
end
else
begin
showmessage('not exit');
end;
end;