如何得到当前的工作目录,以及如何设置当前的工作目录?谢谢
解决方案 »
- 下了d2007,安装需要组件正常,提示过了许可协议后,下一步就提示序列号错误,无法继续安装。。。。。。???
- 如何让TEdit支持不同的颜色显示?
- 关于在Access数据库中存字体的Style属性~(期待中。。。。。。)
- 请问这个结构在delphi中怎么写?
- [求助]请问我应该用LISTBOX还是STRINGGRID ???
- 如何把word文档存入数据库???
- WIN98下怎么不能运行三层客户端?
- 如何备份一个文件夹中的所有文件,一个一个的备份太麻烦了!!
- 这句代码是什么意思呀?
- TreeView的字体问题????
- 我这里有Delphi控制autocad的OLE特性、方法等操作手册,大放送
- Delphi数据库Post的问题!
SetCurrentDirectory
GetSystemDirectory
GetWindowDirectory
function TForm1.GetNameDir(FileName: TFileName): String;
var
i : Integer;
begin
for i := length(FileName) downto 1 do
begin
if FileName[i] = '\' then
begin
Break
end;
end;
if i <= 1 then
begin
Result := GetNameDir(Application.ExeName);
end
else
begin
Result := copy(FileName,1,i);
end;
end;
GetSystemDirectory
GetWindowDirectoryGetCurrentDir
SetCurrentDirGetCurrentDirectory
SetCurrentDirectory哈哈,沾沾星气,俺也快升了