Q qq172 Unregistered / Unconfirmed GUEST, unregistred user! 2006-05-22 #1 我想在程序启动时让程序检测在D盘上是否存在ABC文件夹,如果有责启动程序,如果没有则提示,点击确定后创建该文件夹,该怎么做呢?
C chuwenyong Unregistered / Unconfirmed GUEST, unregistred user! 2006-05-22 #2 if not DirectoryExists('d:/abc') then if Application.MessageBox('目录不存在,是否需要创建?','提示',MB_ICONINFORMATION+MB_YESNO)=IDYES then CreateDir('d:/abc');
if not DirectoryExists('d:/abc') then if Application.MessageBox('目录不存在,是否需要创建?','提示',MB_ICONINFORMATION+MB_YESNO)=IDYES then CreateDir('d:/abc');
Y yesp Unregistered / Unconfirmed GUEST, unregistred user! 2006-05-22 #3 mainform.oncreate(...); if not directoryexists('D:/ABC') then begin showmessage('文件夹不存在'); createdir('D:/ABC'); end;
mainform.oncreate(...); if not directoryexists('D:/ABC') then begin showmessage('文件夹不存在'); createdir('D:/ABC'); end;