呵呵,如果你的文件名不是带完整的路径信息,你是难以找到其所在目录的,但如果它本身就带完整路径的话,你可以用ExtractFilePath或ExtractFileDir函数取出文件名中的路径部分,就是你要的目录名了!
解决方案 »
- EOF和BOF
- 求:朋友,谁可以给我一套比较正规的项目文档,谢谢
- 关于图片的存入数据库的问题
- 小问题大分量 快!!!
- 寻求用DSPack开发包开发视频采集方面的高手,可以付money,高手进来看看
- Delphi连接Access数据库如何判断字段为自增性
- 关于DELPHI中调用SQL SERVER 2000服务器数据库存储过程的问题.望得到指教..
- 求助:怎么使 dbgrideh 自动的添加一行,谢谢!(马上送分)
- 怎样在TBitmap或TImage中绘制一个空心矩形
- Ttable的indexfieldnames指定了以后,能够继续指定按其的降序或升序排列吗
- 如何获得域中的所有计算机名!!!!!!
- 数据感知控件,输入时出错,怎么办?
ExpandFileName converts the relative file name into a fully qualified path name by merging in the current drive and directory. A fully qualified path name includes the drive letter and any directory and subdirectories in addition to the file name and extension. ExpandFileName does not verify that the resulting fully qualified path name refers to an existing file, or even that the resulting path exists.Note: ExpandFileName does not support UNC format. To expand to a UNC file name, use ExpandUNCFileName.
to:angel79(无私天使)