jmp-l
[Top] [All Lists]

Re: How do I get a list of files on disc into JSL?

To: jmp-l@lists.biostat.wustl.edu
Subject: Re: How do I get a list of files on disc into JSL?
From: Kyle Hamar <kyle.hamar@gmail.com>
Date: Tue, 24 Jan 2006 16:55:26 -0800
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sk6X5NdR4sXO7ekr+bzVppEDjLxhZL0JMTD3W015nrCEZhDbm5CrX6I5rSFpU7Z+B7tCz+27gDM/wwTEr0E07QC5NZ1Rdu6+sAFpROBkFY0AWIhxGjiaCADXQRr+NRLhL2C8IkRc2Sx2CW0E+Sm2h4q1mcg/Ctc14CzHQK/0Q3E=
In-reply-to: <20060124041226.24571.qmail@web30809.mail.mud.yahoo.com>
References: <e446ecef0601231651j125d4608wc35ff03481505118@mail.gmail.com> <20060124041226.24571.qmail@web30809.mail.mud.yahoo.com>
On 1/23/06, chem engineer <chemical_engr@yahoo.com> wrote:
> http://www.aracnet.com/~cmorgan/gzdll_driver/ is the link
> to find a key tool which can help you solve your problem.
>
> If you have specific questions on how to make this work for you ... email
> me.

Don,
Thank you for the prompt response. I did finally get a moment today to
look at gzdll - which at first glance appears to be exactly what I
want. In practice however I cannot seem to make it work. Looking at
your message again, I appreciate the Socratic method but fear that
more detail is required.

The example code below runs, but with unexpected results:
dll = LoadDLL("gzdllgz.dll");
dll << CallDLL("gzdll_status_file", "c", "c:\temp\status.txt");
dll << CallDLL("gzdll_browse_initial_dir", "c", "c:\temp");
dll << CallDLL("gzdll_browse", "c", "All Files (*.*)|*.*");
dll << UnloadDLL();

This opens a dialog box that awaits for confirmation. Upon completion
the list of files is written to status.txt.

Questions: Can I avoid the dialog box (or automatically close it?) and
Am I missing a more direct way to obtain a list of files (other than
re-loading status.txt after completion?)

Trying another method,
dll << CallDLL("gzdll_exec", "c", "dir c:\temp");
also fails. I expected the directory to be written to status.txt - but
'dir' does not appear to be executable from this method.

Your assistance is most appreciated. How can I populate a list with
filenames using gzdll?

Kyle

<Prev in Thread] Current Thread [Next in Thread>