AnsweredAssumed Answered

vrf Directory browsing

Question asked by scubaman on Mar 23, 2002

AH YES!  That's the idea I was looking for, thanks!  I'm sure I can
implement something from here

--
Regards,
Rich
===========================
Richard Kleinhenz
mailto:scubaman@us.ibm.com
845-892-2617
===========================


                                                                                                                             
                      "Davis, Jeff"                                                                                          
                      <jeff.davis@cdi-e        To:       Richard Kleinhenz/Fishkill/IBM@IBMUS                                
                      s.com>                   cc:                                                                           
                                               Subject:  RE: vrf Directory browsing                                          
                      03/22/2002 05:19                                                                                       
                      PM                                                                                                     
                                                                                                                             
                                                                                                                             




Not sure if this is going to be of much help to you but here are a couple
of
ideas:

Using the Windows 2000 OS (and I am pretty sure Win9x and NT 4.0 to), you
can shell out to the command interpreter and run the command "NET USE" to
get a list of the Network shares including their local Drive names. It
should look something like this:

----------------------------------------------------------------------------

---
C:>net use
New connections will be remembered.

Status       Local     Remote                    Network
----------------------------------------------------------------------------

---
Disconnected D:        \TOMsoftware            Microsoft Windows Network
Disconnected F:        \BOBarchive             Microsoft Windows
Network
OK           T:        \CAROL     emp              Microsoft Windows Network
OK           U:        \userhome$jad          Microsoft Windows Network
Disconnected           \vipercontrols          Microsoft Windows Network


The command completed successfully.
----------------------------------------------------------------------------

---


It should be pretty straight forward to parse through this list and use
TO/FROM string objects to extract the drive names and their local Drive
letter designators.


Please see the attached VEE 6.0 program that lists the currently mapped
local drives..I hope this helps you somehow.


Jeff Davis
Embedded Systems - CDI Technical Services
3137 E Elwood # 160
Phoenix, Arizona 85034
Phone: (602)431-4497 (x226)
Cell: (480)330-1431
Fax: (602)431-4435
http://www.cdicad.com

-----Original Message-----
From: Richard Kleinhenz [mailto:scubaman@us.ibm.com]
Sent: Friday, March 22, 2002 12:33 PM
To: vrf@lvld.agilent.com
Subject: vrf Directory browsing


I want to browse date sorted directories and files using some filter and
have run into roadblocks with every approach so far.  The built-in file
selection dialog is cumbersome, simply takes too many clicks, and the
window is too small.  Shawn Fessenden had something I could get to work on
my PC but it would not work on other versions of the OS.  I tried
dirbrowse, but that can't be sorted.

So I started working on a DOS based approach.  I got it working very
nicely, up or down a structure, but I can't switch drives that way.  In the
windows world, when you follow '..' up the tree, after the drive's root
directory, you ge to 'my computer', from where you can chose a different
drive.  In the DOS world, you can't do '..' from a drive's root directory,
it's a hard stop.  My Computer sits on the desktop, and I know the desktop
is only another folder, but 'my computer' is not there explicitly, I guess
it's a system object or view that behaves differently.

I'm looking for ideas.  Am I missing something obvious?

How can I get a list of valid drives in DOS or in Vee some other way?  If I
had a list of valid drive letters and names (important for network drives)
I could add these to the selection list and key off them.

(Will NR provide better browsing dialogs?)

--
Regards,
Rich
===========================
Richard Kleinhenz
mailto:scubaman@us.ibm.com
845-892-2617
===========================

---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address
"vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------



________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________


#### drives.vee has been removed from this note on March 24 2002 by Richard
Kleinhenz



---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------

Outcomes