Re: [Esug-list] how to pick an existing (empty) directory name (mapped in Windows to a drive letter)?

SK
Steven Kelly
Thu, Feb 12, 2015 2:43 PM

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
file:///\\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:wenk@hinz.de]
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 [mailto:esug-list-bounces@lists.esug.org] 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: wenk@hinz.de mailto:wenk@hinz.de

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.


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 <file:///\\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:wenk@hinz.de] 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 [mailto:esug-list-bounces@lists.esug.org] 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: wenk@hinz.de <mailto:wenk@hinz.de> 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. ________________________________________________________________
JS
Josef Springer
Thu, Feb 12, 2015 4:52 PM
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](cid:part1.09050504.06000809@joops.com)   

Address
Josef.Springer@joops.com
Orlando-di-Lasso Str. 2
D-85640 Putzbrunn
Phone
Office
+49 (0)89 600 6920

![Phone](cid:part2.07000103.00080007@joops.com)  Fax  

+49 (0)89 600 69220

![Web](cid:part4.08030606.01040304@joops.com)   

Web
http://www.joops.com

    ![JOOPS](cid:part5.07020901.00080009@joops.com)   

(HRB München 86239)

-- the software company --

On 12.02.2015 15:43, Steven Kelly wrote: > Autosignatur <!--

/* Font Definitions /
@font-face
{font-family:"MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"@MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
/
Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:black;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";
color:black;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
{page:WordSection1;}
-->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 [mailto:wenk@hinz.de]
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 [mailto:esug-list-bounces@lists.esug.org] 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: wenk@hinz.de

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.

________________________________________________________________

<pre wrap="">

_______________________________________________ Esug-list mailing list Esug-list@lists.esug.orghttp://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org