怎样用程序新建一个文件夹,请各位大虾帮忙。
解决方案 »
- 一个很有意思的故事,后来人继续!!!!
- 用ADO连接SQLS,程序怎么样才能获得SQLS报的错误?
- 请问如何模拟按下 alt+左键头(其他方向键也可以)?这个问题应该很难!解决送100分。
- 求时间函数(在线等)
- 难题不难,兄弟们帮忙:):):):):):):):):):):):):):):) UP 有分
- 关于布尔型字段在dbgrid上显示的问题
- 急!急!急!大伙快帮帮我吧
- 请问各位使用什么数据库???
- 请叫一个问题:怎么用ADO联数据库啊(ADO我一点不懂)我照着书做也好不行啊
- tikkypeng(千两狂死郎)和lovewangj(lllll)
- lxpbuaa,进来,有事
- 有没有考北大青鸟的?这个考过了怎么样?
procedure TForm1.Button1Click(Sender: TObject);
begin
createdir('c:\1');
end;
begin
try
if not directoryexists(frootpath+modulname) then
createdir(FRootPath+modulname);
if not DirectoryExists(FRootPath+modulname+'\'+pathname) then
createdir(FRootPath+modulname+'\'+pathname);
if not directoryexists(FRootPath+modulname+'\'+pathname+'\'+dirname) then
createdir(FRootPath+modulname+'\'+pathname+'\'+dirname);
if filepath<>'' then
if not directoryexists(FRootPath+modulname+'\'+pathname+'\'+dirname+'\'+filepath) then
createdir(FRootPath+modulname+'\'+pathname+'\'+dirname+'\'+filepath)
except
On E:Exception do begin
abort;
end;
end;
banjin.N21.Enabled:=true;
liucheng.MenuItem1.Enabled:=true;
yanzheng.N21.Enabled:=true;
banjin.SpeedButton1.Enabled:=true;
liucheng.SpeedButton1.Enabled:=true;
yanzheng.SpeedButton1.Enabled:=true;
banjin.toolbutton1.Enabled:=true;
liucheng.toolbutton1.Enabled:=true;
yanzheng.toolbutton1.Enabled:=true;
if filepath='' then
filespath:=FRootPath+modulname+'\'+pathname+'\'+dirname+'\'+filepath else
filespath:=FRootPath+modulname+'\'+pathname+'\'+dirname+'\'+filepath+'\';
banjin.StatusBar1.Panels[0].Text:='你目前所在的位置:'+filespath;
liucheng.StatusBar1.Panels[0].Text:='你目前所在的位置:'+filespath;
yanzheng.StatusBar1.Panels[0].Text:='你目前所在的位置:'+filespath;
end;