怎么自由浏览本地目录,并获取它

夜惊年 2008-10-28 09:52:01
我使用PB写了FTP,从FTP服务器上下载文件到本地,让用户自己选择本地的一个目录来保存。

这个怎么获取目录?

使用getfilesavename函数,打开了选择目录的窗口,但是必须要手动输入一个文件名。这个文件名已经放在了服务器,能得到,但是怎么放到使用getfilesavename函数弹出的windows的目录浏览窗口的里面?

有没有只有选择目录,不需要输入文件名的函数??

API应该有,但是不知道!

请大虾们指点下!

...全文
46 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
-狙击手- 2008-10-28
  • 打赏
  • 举报
回复
Description

Displays a folder selection dialog box.

Syntax

GetFolder ( title, directory )
Argument Description
title String for a title that displays above a listbox containing a tree view for folder selection
directory String for the directory name passed by reference to the folder selection dialog box. The directory name is selected, and its subfolders, if any, are displayed in a dialog box tree view
Return value

Integer. Returns 1 if the function succeeds, 0 if the user selects cancel (or the dialog box is closed), -1 if an error occurs.
夜惊年 2008-10-28
  • 打赏
  • 举报
回复
API函数getcurrentdirectoryA()是获取当前工作目录的!

1,075

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧