how to pick an existing (empty) directory name (mapped in Windows to a drive letter)?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

how to pick an existing (empty) directory name (mapped in Windows to a drive letter)?

Ulli Wenk
Hello,

how I can use a native FolderDialog/DirectoryRequest for a directory which may be empty (we need it for selecting a subprocess-working-directory chosen by our users)?

The VW FileDialog and Win32FileDialog can only be used for not empty directories (selecting an arbitrary file and getting its directory path). The Aragon.Widget Dialog>requestDirectory let me select a directory but does not show the drive letters of the (Windows-) mapped drives. Thus, for our users (hospital nurses), it is not so easy to find a known directory.
Has anybody a solution?

Regards, Ulli
--
Autosignatur

 

Mit freundlichen Grüßen,

Dr. Hans-Ullrich Wenk

Abteilungsleiter Softwareentwicklung

__________________________________________

HINZ Fabrik GmbH

Organisation im Gesundheitswesen

Lankwitzer Straße 17/18

D-12107 Berlin

Tel.: +49 (0) 30 / 7 47 04-175
Fax: +49 (0) 30 / 7 47 04-160

 

E-Mail: [hidden email]

Besuchen Sie uns im Internet unter www.hinz.de.
_______________________________________________________________

Eingetragen im Handelsregister Berlin: 92 HRB 2532

Geschäftsführer: Gregor Schmidt, Berlin; Michael Voß, Berlin

_______________________________________________________________

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.

The contents of this email and any attachments are confidential. It is intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies.

________________________________________________________________

 

 

 


_______________________________________________
Esug-list mailing list
[hidden email]
http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org
Reply | Threaded
Open this post in threaded view
|

Re: how to pick an existing (empty) directory name (mapped in Windows to a drive letter)?

Steven Kelly
Autosignatur

VW has:

  Dialog requestDirectoryName: 'Choose a Directory:'

which explicitly selects a directory (including empty ones) rather than a file.

 

From: Esug-list [mailto:[hidden email]] On Behalf Of Ulli Wenk
Sent: Thursday, February 12, 2015 1:30 PM
To: ESUG Mailing list
Subject: [Esug-list] how to pick an existing (empty) directory name (mapped in Windows to a drive letter)?

 

Hello,

how I can use a native FolderDialog/DirectoryRequest for a directory which may be empty (we need it for selecting a subprocess-working-directory chosen by our users)?

The VW FileDialog and Win32FileDialog can only be used for not empty directories (selecting an arbitrary file and getting its directory path). The Aragon.Widget Dialog>requestDirectory let me select a directory but does not show the drive letters of the (Windows-) mapped drives. Thus, for our users (hospital nurses), it is not so easy to find a known directory.
Has anybody a solution?

Regards, Ulli

--

 

Mit freundlichen Grüßen,

Dr. Hans-Ullrich Wenk

Abteilungsleiter Softwareentwicklung

__________________________________________

HINZ Fabrik GmbH

Organisation im Gesundheitswesen

Lankwitzer Straße 17/18

D-12107 Berlin

Tel.: +49 (0) 30 / 7 47 04-175
Fax: +49 (0) 30 / 7 47 04-160

 

E-Mail: [hidden email]

Besuchen Sie uns im Internet unter www.hinz.de.
_______________________________________________________________

Eingetragen im Handelsregister Berlin: 92 HRB 2532

Geschäftsführer: Gregor Schmidt, Berlin; Michael Voß, Berlin

_______________________________________________________________

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.

The contents of this email and any attachments are confidential. It is intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies.

________________________________________________________________

 

 

 


_______________________________________________
Esug-list mailing list
[hidden email]
http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org
Reply | Threaded
Open this post in threaded view
|

Re: how to pick an existing (empty) directory name (mapped in Windows to a drive letter)?

Andreas Hiltner
Or you could take a look the native function

"SHBrowseForFolder"
(https://msdn.microsoft.com/en-us/library/windows/desktop/bb762115.aspx)

  if you look for a Windows native alternative.

Cheers,
Andreas

Steven Kelly schrieb:

>
> VW has:
>
>   Dialog requestDirectoryName: 'Choose a Directory:'
>
> which explicitly selects a directory (including empty ones) rather
> than a file.
>
> *From:*Esug-list [mailto:[hidden email]] *On Behalf
> Of *Ulli Wenk
> *Sent:* Thursday, February 12, 2015 1:30 PM
> *To:* ESUG Mailing list
> *Subject:* [Esug-list] how to pick an existing (empty) directory name
> (mapped in Windows to a drive letter)?
>
> Hello,
>
> how I can use a native FolderDialog/DirectoryRequest for a directory
> which may be empty (we need it for selecting a
> subprocess-working-directory chosen by our users)?
>
> The VW FileDialog and Win32FileDialog can only be used for not empty
> directories (selecting an arbitrary file and getting its directory
> path). The Aragon.Widget Dialog>requestDirectory let me select a
> directory but does not show the drive letters of the (Windows-) mapped
> drives. Thus, for our users (hospital nurses), it is not so easy to
> find a known directory.
> Has anybody a solution?
>
> Regards, Ulli
>
> --
>
> Mit freundlichen Grüßen,
>
> Dr. Hans-Ullrich Wenk
>
> Abteilungsleiter Softwareentwicklung
>
> __________________________________________
>
> *HINZ Fabrik GmbH*
>
> Organisation im Gesundheitswesen
>
> Lankwitzer Straße 17/18
>
> D-12107 Berlin
>
> Tel.: +49 (0) 30 / 7 47 04-175
> Fax: +49 (0) 30 / 7 47 04-160
>
> E-Mail: [hidden email] <mailto:[hidden email]>
>
> Besuchen Sie uns im Internet unter www.hinz.de <http://www.hinz.de/>.
> _______________________________________________________________
>
> Eingetragen im Handelsregister Berlin: 92 HRB 2532
>
> Geschäftsführer: Gregor Schmidt, Berlin; Michael Voß, Berlin
>
> _______________________________________________________________
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
> E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
> Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren
> sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
>
> The contents of this email and any attachments are confidential. It is
> intended for the named recipient(s) only. If you have received this
> email in error please notify the system manager or the sender
> immediately and do not disclose the contents to anyone or make copies.
>
> ________________________________________________________________
>
> _______________________________________________
> Esug-list mailing list
> [hidden email]
> http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org

_______________________________________________
Esug-list mailing list
[hidden email]
http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org
Reply | Threaded
Open this post in threaded view
|

Re: how to pick an existing (empty) directory name (mapped in Windows to a drive letter)?

Steven Kelly
In reply to this post by Steven Kelly
Autosignatur

You can map between UNCs and drive letters using the command prompt’s ”net use” or (for permanent mappings only?) the registry’s <a href="file:///\\HKCU\Network">\\HKCU\Network. Should be easy enough (and fast enough) to make VW’s own directory dialog use one of those to add that info when opening.

 

Steve

 

 

From: Ulli Wenk [mailto:[hidden email]]
Sent: Thursday, February 12, 2015 2:42 PM
To: Steven Kelly
Subject: Re: [Esug-list] how to pick an existing (empty) directory name (mapped in Windows to a drive letter)?

 

Please, look again the the red-mark text!

Am 12.02.2015 um 12:41 schrieb Steven Kelly:

 Dialog requestDirectoryName: 'Choose a Directory:'

which explicitly selects a directory (including empty ones) rather than a file.

 

From: Esug-list [[hidden email]] On Behalf Of Ulli Wenk
Sent: Thursday, February 12, 2015 1:30 PM
To: ESUG Mailing list
Subject: [Esug-list] how to pick an existing (empty) directory name (mapped in Windows to a drive letter)?

 

Hello,

how I can use a native FolderDialog/DirectoryRequest for a directory which may be empty (we need it for selecting a subprocess-working-directory chosen by our users)?

The VW FileDialog and Win32FileDialog can only be used for not empty directories (selecting an arbitrary file and getting its directory path). The Aragon.Widget Dialog>requestDirectory let me select a directory but does not show the drive letters of the (Windows-) mapped drives. Thus, for our users (hospital nurses), it is not so easy to find a known directory.
Has anybody a solution?

 

--

 

Mit freundlichen Grüßen,

Dr. Hans-Ullrich Wenk

Abteilungsleiter Softwareentwicklung

__________________________________________

HINZ Fabrik GmbH

Organisation im Gesundheitswesen

Lankwitzer Straße 17/18

D-12107 Berlin

Tel.: +49 (0) 30 / 7 47 04-175
Fax: +49 (0) 30 / 7 47 04-160

 

E-Mail: [hidden email]

Besuchen Sie uns im Internet unter www.hinz.de.
_______________________________________________________________

Eingetragen im Handelsregister Berlin: 92 HRB 2532

Geschäftsführer: Gregor Schmidt, Berlin; Michael Voß, Berlin

_______________________________________________________________

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.

The contents of this email and any attachments are confidential. It is intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies.

________________________________________________________________

 

 

 


_______________________________________________
Esug-list mailing list
[hidden email]
http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org
Reply | Threaded
Open this post in threaded view
|

Re: how to pick an existing (empty) directory name (mapped in Windows to a drive letter)?

Josef Springer
Dear Mr. Wenk,

The statements

    | dialog |
    dialog := ChooseDirectoryDialog new.
    ^dialog open
        ifTrue: [dialog selection]
        ifFalse: [nil]


let you pick any kind of directory (empty and not empty). A path selector dialog with a combobox (shows the selected path and lets select a path), a selection list of directories of the current path and some helper buttons for creating a new directory, etc.) is part of the selecting dialog. You can traverse the hirarchy of displayed paths down and up to the required one.

As you write, i assume you are working with VisualWorks. My example is from VW 7.8.1.

mit freundlichen Grüßen / best regards,
Josef Springer
(Geschäftsleitung/Management)

Postal
Address
[hidden email]
Orlando-di-Lasso Str. 2
D-85640 Putzbrunn
Phone
Office
+49 (0)89 600 6920


Phone Fax
+49 (0)89 600 69220


Web
Web
http://www.joops.com


JOOPS
(HRB München 86239)

-- the software company --


On 12.02.2015 15:43, Steven Kelly wrote:
Autosignatur

You can map between UNCs and drive letters using the command prompt’s ”net use” or (for permanent mappings only?) the registry’s \\HKCU\Network. Should be easy enough (and fast enough) to make VW’s own directory dialog use one of those to add that info when opening.

 

Steve

 

 

From: Ulli Wenk [[hidden email]]
Sent: Thursday, February 12, 2015 2:42 PM
To: Steven Kelly
Subject: Re: [Esug-list] how to pick an existing (empty) directory name (mapped in Windows to a drive letter)?

 

Please, look again the the red-mark text!

Am 12.02.2015 um 12:41 schrieb Steven Kelly:

 Dialog requestDirectoryName: 'Choose a Directory:'

which explicitly selects a directory (including empty ones) rather than a file.

 

From: Esug-list [[hidden email]] On Behalf Of Ulli Wenk
Sent: Thursday, February 12, 2015 1:30 PM
To: ESUG Mailing list
Subject: [Esug-list] how to pick an existing (empty) directory name (mapped in Windows to a drive letter)?

 

Hello,

how I can use a native FolderDialog/DirectoryRequest for a directory which may be empty (we need it for selecting a subprocess-working-directory chosen by our users)?

The VW FileDialog and Win32FileDialog can only be used for not empty directories (selecting an arbitrary file and getting its directory path). The Aragon.Widget Dialog>requestDirectory let me select a directory but does not show the drive letters of the (Windows-) mapped drives. Thus, for our users (hospital nurses), it is not so easy to find a known directory.
Has anybody a solution?

 

--

 

Mit freundlichen Grüßen,

Dr. Hans-Ullrich Wenk

Abteilungsleiter Softwareentwicklung

__________________________________________

HINZ Fabrik GmbH

Organisation im Gesundheitswesen

Lankwitzer Straße 17/18

D-12107 Berlin

Tel.: +49 (0) 30 / 7 47 04-175
Fax: +49 (0) 30 / 7 47 04-160

 

E-Mail: [hidden email]

Besuchen Sie uns im Internet unter www.hinz.de.
_______________________________________________________________

Eingetragen im Handelsregister Berlin: 92 HRB 2532

Geschäftsführer: Gregor Schmidt, Berlin; Michael Voß, Berlin

_______________________________________________________________

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.

The contents of this email and any attachments are confidential. It is intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies.

________________________________________________________________

 

 

 

_______________________________________________ Esug-list mailing list [hidden email] http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org



_______________________________________________
Esug-list mailing list
[hidden email]
http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org
Reply | Threaded
Open this post in threaded view
|

Re: how to pick an existing (empty) directory name (mapped in Windows to a drive letter)?

Ulli Wenk
In reply to this post by Andreas Hiltner
Thanks to all of you

for the immediate help, especially to Andreas Hiltner for the solution with the native Windows SHBrowseForFolder function.
 As he suggested, I implemented a class (Win32FolderDialog) doing all (after extending MinimalShellInterface from package "Windows Goodies").

If somebody is interested in it, too, I could publish it in the Public Repository (in an new version of  "Windows Goodies" or an extra small package).

Regards, Ulli

 

 


_______________________________________________
Esug-list mailing list
[hidden email]
http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org
Reply | Threaded
Open this post in threaded view
|

Re: how to pick an existing (empty) directory name (mapped in Windows to a drive letter)?

NiallRoss
Dear Ulli,

> ... I implemented a class (Win32FolderDialog) doing all (after
> extending MinimalShellInterface from package "Windows Goodies").
>
> If somebody is interested in it, too, I could publish it in the Public
> Repository (in an new version of  "Windows Goodies" or an extra small
> package).

I'm sure people would be pleased to see it appear, maybe in a fresh
version of Windows Goodies with an explanatory blessing comment.  If
others like it, it may in time become part of the standard version.

             Just my 0.02p
                   Niall Ross


_______________________________________________
Esug-list mailing list
[hidden email]
http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org
Reply | Threaded
Open this post in threaded view
|

Re: how to pick an existing (empty) directory name (mapped in Windows to a drive letter)?

Ulli Wenk
I have published it (as Niall recommended).

Regards, Ulli

02/14/2015, 15:15, Niall Ross wrote:
Dear Ulli,

... I implemented a class (Win32FolderDialog) doing all (after extending MinimalShellInterface from package "Windows Goodies").

If somebody is interested in it, too, I could publish it in the Public Repository (in an new version of  "Windows Goodies" or an extra small package).

I'm sure people would be pleased to see it appear, maybe in a fresh version of Windows Goodies with an explanatory blessing comment.  If others like it, it may in time become part of the standard version.

            Just my 0.02p
                  Niall Ross


_______________________________________________
Esug-list mailing list
[hidden email]
http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org