Re: File list from server in dev2K?

From: Gudrun Janssen <janssen_at_itu.fzk.de>
Date: Wed, 07 Apr 1999 13:28:11 +0200
Message-ID: <370B414A.86C2AF01_at_itu.fzk.de>


Hi,

get_file_name is a Built-In.
[Quoted] Forms takes the directory from the machine where your application is started. You can make the mapping before with the Host-Built-In. In WinNT I would do something like that:

HOST('net use x: /delete');
HOST('net use x: \\servername\somedir'); v_filename := get_file_name(...

I have not tested this and it should be improved. Some things you should consider (there may be more): The enduser must be allowed to access the directory you want under the name somedir for net use being successfully.
You might have to use the option USER
with the net use command.
The first delete net use might end in error because there is no actual mapping for X, that doesn't matter normally, but I don't know if control returns to Forms.
Some of your users might have an important mapping with X, that they don't want to have deleted. (Phew, how complicate to describe while not knowing the special words in english).

In my case I don't have to care about that, because I'm also the DBA and I know that all database users do have the needed mapping. Hope you will find a safe way for your application.

Regards,
Gudrun

Steve Haynes wrote:

> In article <3709C28D.E9CAD4E8_at_itu.fzk.de>, Gudrun Janssen
> <janssen_at_itu.fzk.de> writes
> > v_filename := get_file_name('X:\SOMEDIR',NULL,
> > 'Text Files (*.txt)|*.txt|', NULL, OPEN_FILE );
>
> Hi Gudrun,
> Thanks for that.
> I'm not at work at the moment, so I can't experiment yet.
> However, a couple of questions if I may...
>
> 1> Is get_file_name a forms builtin?
> 2> does 'X:\SOMEDIR' mean X on client or server
> (drive mappings may differ)
>
> Thanks
>
> Steve
> --
> Please remove nospam from my address to Reply.
Received on Wed Apr 07 1999 - 13:28:11 CEST

Original text of this message