Hi Bertram,

You don't say what version of Windows you are using.

On Windows SysDriveMap relies on the Windows getLogicalDrives function
documented here:

https://msdn.microsoft.com/en-us/library/windows/desktop/aa364972(v=vs.85).aspx

The first community addition note about UAC may point to what you are
experiencing?

hth

Jon

On 25 May 2015 at 21:27, Bertram Moshier <bertrammosh...@gmail.com> wrote:

> Hello,
>
> I'm working on a program to find all files on my system and collect some
> information on them, so I can find:
>
>    1. Duplicate files.
>    2. Deleted / Gone missing files.
>    3. File changes since last run
>    4. How fast each drive is on reading files
>    5. Other stuff over time.
>
> As part of this I'm using SysDriveMap() to find the drives on my system.
> I think I found at least three bugs/design problems in SysDriveMap().  They
> are:
>
>    1. I'm using B: as a remote (e.g. NAS drive), but its not showing up
>    as a remote drive.
>    2. I'm using B, but it doesn't come up a a drive in use.
>    3. I'm not use A, but it doesn't come up as a free drive.
>
>
> I'm including two set of output to show the issue.
>
> NOTE:  I'm coming here before opening a bug report, as:
>
>    1. It might already be a known condition.
>    2. I'm doing something wrong and would like to know.
>
> The outputs I'm including are:
>
>    1. Output from REXXTRY  (Shows SysDriveMap(); (twice); Changing to the
>    B: drive; Dir of B: drive.
>    2. Output for the same ooRexx program: Drives.rex.  I noticed
>    Drives.rex doesn't include A: or B: in the list of drives not in use.
>    FYI:  There is not internal floppy drive.
>
> Thank you,
>
> Bertram Moshier
>
>
> = = = = = = = = = = REXXTRY Output = = = = = = = = = =
>
> Mon 05/25/2015 15:09:31.74 C:\Program Files\ooRexx\samples>rexxtry
> REXX-ooRexx_4.2.0(MT)_64-bit 6.04 22 Feb 2014
>   rexxtry.rex lets you interactively try REXX statements.
>     Each string is executed when you hit Enter.
>     Enter 'call tell' for a description of the features.
>   Go on - try a few...            Enter 'exit' to end.
> say  SysDriveMap()
> C: D: E: F: I: J: M: V: Z:
>   ........................................... rexxtry.rex on WindowsNT
> 'b:'
>   rc = 0 .................................... rexxtry.rex on WindowsNT
> 'dir'
>  Volume in drive B is DamonAaronAbles
>  Volume Serial Number is B6E3-2AE2
>
>  Directory of B:\
>
> 05/07/2015  11:55 PM    <DIR>          .
> 02/20/2015  04:04 AM    <DIR>          ..
> 11/29/2014  09:18 AM    <DIR>          2014_11_15
> 06/27/2014  11:16 PM    <DIR>          Able_Dell_Laptop_Rebuild
> 01/02/2015  04:19 PM               887 aes.txt
> 11/09/2014  09:48 AM    <DIR>          Backup_2014_11
> 12/08/2014  04:44 PM    <DIR>          Backup_2014_12_08
> 10/27/2014  02:10 PM             7,624 BGM_SIG.jpg
> 11/01/2014  01:18 PM             9,478 BGM_Signature.jpg
> 02/26/2015  04:56 PM        95,817,080 boinc_7.4.36_windows_x86_64_vbox.exe
> 04/22/2015  04:41 PM            32,768 Damon_Ables_Prescriptions.xls
> 09/10/2014  02:00 AM            64,610 FF11Fishing.rex
> 04/28/2015  10:08 PM    <DIR>          FFXI_Install_Files
> 06/24/2013  03:53 PM    <DIR>          GrapeApe_Recovery
> 11/05/2014  02:48 PM    <DIR>          iolo
> 11/05/2014  02:49 PM    <DIR>          logs
> 10/27/2014  01:34 AM    <DIR>          Manual_Backup_PC_HTC_EVO_Kindle_Fire
> 10/26/2014  06:12 PM            39,897 MCP_story.txt
> 03/11/2013  04:40 PM    <DIR>          Medical
> 10/22/2012  07:13 AM    <DIR>          Misc
> 11/03/2014  01:45 AM         9,896,224 Multiplicity3_setup.exe
> 11/06/2014  05:27 AM             1,920 NetworkDrives.bat
> 11/23/2014  06:19 AM    <DIR>          Nov_17_2014
> 11/11/2014  10:43 PM             6,756 password-export-2014-11-11.xml
> 06/29/2014  05:42 PM           503,954
> Passwords_Plus_Backup_2014_06_29_001.pdb
> 09/01/2014  04:29 AM             1,600 QD_Buff.txt
> 09/30/2014  10:02 AM            17,442 Ram_SMN.txt
> 09/10/2014  12:33 AM            62,830 Ramrat_fishing.rex
> 11/14/2014  06:11 AM    <DIR>          Seagate_BlackArmor_Backup
> 12/06/2014  03:24 PM    <DIR>          Shared_Photos
> 10/27/2014  12:29 PM           370,520
> SoftonicDownloader_for_unipdf-converter.exe
> 11/21/2014  11:52 PM             4,164 StartUp.bat
> 01/02/2015  09:35 PM             3,586 StartUp.bat at Login Time.xml
> 10/28/2014  04:24 AM            13,061 T7500 Upgrade Thoughts.xlsx
> 05/28/2012  11:13 PM    <DIR>          Tim_Brough_Music
> 04/05/2015  01:00 AM    <DIR>          Videos
> 11/11/2014  11:55 AM             1,940 vlc.log
> 11/03/2014  10:15 AM               324 Win_Key.txt
> 11/27/2014  01:22 PM    <DIR>          Xedit
>               20 File(s)    106,856,665 bytes
>               19 Dir(s)  1,868,422,557,696 bytes free
>   rc = 0 .................................... rexxtry.rex on WindowsNT
> say  SysDriveMap()
> C: D: E: F: I: J: M: V: Z:
>   ........................................... rexxtry.rex on WindowsNT
> exit
>
> Mon 05/25/2015 15:10:48.58 C:\Program Files\ooRexx\samples>net use
> New connections will be remembered.
>
>
> Status       Local     Remote                    Network
>
>
> -------------------------------------------------------------------------------
> OK           B:        \\BlackGlass\DamonAaronAbles
>                                                 Microsoft Windows Network
> OK           M:        \\BlackGlass\Music        Microsoft Windows Network
> The command completed successfully.
>
> = = = = = = = = = = DRIVES.REX Output = = = = = = = = = =
>
> Mon 05/25/2015 15:21:02.32 C:\Program Files\ooRexx\samples>drives
>
> ┌─────┬────────────────┬────────────────┬──────────────┬────────┬──────────┐
> │Drive│      Free      │     Total      │    Label
> │Location│Filesystem│
>
> ├─────┼────────────────┼────────────────┼──────────────┼────────┼──────────┤
> │ C:  │761.851.011.072 │900.079.808.512 │ Vanadiel     │ local  │ NTFS
> │
> │ D:  │919.573.499.904 │000.395.694.080 │ Data_Drive   │ local  │ NTFS
> │
> │ E:  │                │                │ CD-ROM       │        │
> │
> │ F:  │                │                │ CD-ROM       │        │
> │
> │ I:  │147.072.684.032 │000.845.586.432 │ Bastok_001   │ local  │ NTFS
> │
> │ J:  │769.829.691.392 │000.969.318.400 │ Bastok_002   │ local  │ NTFS
> │
> │ M:  │868.422.557.696 │950.680.141.824 │ Music        │ remote │ NTFS
> │
> │ V:  │                │                │ CD-ROM       │        │
> │
> │ Z:  │299.385.503.744 │299.864.420.352 │ New Volume   │ local  │ NTFS
> │
>
> └─────┴────────────────┴────────────────┴──────────────┴────────┴──────────┘
>
> Operating System Version     :  WindowsNT 6.01
> Bootdrive                    :  C:
> Used drives                  :  C: D: E: F: I: J: M: V: Z:
> Local drives                 :  C: D: I: J: Z:
> RAM drives                   :  No RAM Drives
> Remote drives                :  M:
> Drive letters not used       :  G: H: K: L: N: O: P: Q: R: S: T: U: W: X:
> Y:
>
>
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Oorexx-users mailing list
> Oorexx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to