PoshCode Archive  Hex Artifact Content

Artifact 847faa3c43d2dd365b409cc8d04d1ee38f0cf7aec5e97a35528ef72b2373faeb:

  • File used-drive-letters.ps1 — part of check-in [00f2e57619] at 2018-06-10 13:50:08 on branch trunk — Fix (user: greg zakharov size: 396)

0000: 23 20 65 6e 63 6f 64 69 6e 67 3a 20 61 73 63 69  # encoding: asci
0010: 69 0d 0a 23 20 61 70 69 3a 20 70 6f 77 65 72 73  i..# api: powers
0020: 68 65 6c 6c 0d 0a 23 20 74 69 74 6c 65 3a 20 75  hell..# title: u
0030: 73 65 64 20 64 72 69 76 65 20 6c 65 74 74 65 72  sed drive letter
0040: 73 0d 0a 23 20 64 65 73 63 72 69 70 74 69 6f 6e  s..# description
0050: 3a 20 46 69 78 0d 0a 23 20 76 65 72 73 69 6f 6e  : Fix..# version
0060: 3a 20 30 2e 31 0d 0a 23 20 61 75 74 68 6f 72 3a  : 0.1..# author:
0070: 20 67 72 65 67 20 7a 61 6b 68 61 72 6f 76 0d 0a   greg zakharov..
0080: 23 20 6c 69 63 65 6e 73 65 3a 20 43 43 30 0d 0a  # license: CC0..
0090: 23 20 78 2d 70 6f 73 68 63 6f 64 65 2d 69 64 3a  # x-poshcode-id:
00a0: 20 35 31 31 30 0d 0a 23 20 78 2d 61 72 63 68 69   5110..# x-archi
00b0: 76 65 64 3a 20 32 30 31 34 2d 30 34 2d 32 36 54  ved: 2014-04-26T
00c0: 31 37 3a 33 39 3a 34 38 0d 0a 23 20 78 2d 70 75  17:39:48..# x-pu
00d0: 62 6c 69 73 68 65 64 3a 20 32 30 31 34 2d 30 34  blished: 2014-04
00e0: 2d 32 32 54 31 38 3a 34 32 3a 30 30 0d 0a 23 0d  -22T18:42:00..#.
00f0: 0a 23 0d 0a 23 6c 6f 6f 6b 73 20 66 6f 72 20 64  .#..#looks for d
0100: 72 69 76 65 20 6c 65 74 74 65 72 73 20 77 68 69  rive letters whi
0110: 63 68 20 61 72 65 20 75 73 65 64 20 77 69 74 68  ch are used with
0120: 20 73 79 73 74 65 6d 20 61 74 20 63 75 72 72 65   system at curre
0130: 6e 74 20 6d 6f 6d 65 6e 74 20 28 69 6e 63 6c 75  nt moment (inclu
0140: 64 69 6e 67 20 73 75 62 73 74 29 0d 0a 5b 43 68  ding subst)..[Ch
0150: 61 72 5b 5d 5d 28 36 35 2e 2e 39 30 29 20 7c 20  ar[]](65..90) | 
0160: 3f 20 7b 63 6d 64 20 2f 63 20 32 60 3e 6e 75 6c  ? {cmd /c 2`>nul
0170: 20 40 28 24 5f 20 2b 20 27 3a 27 29 20 60 26 60   @($_ + ':') `&`
0180: 26 20 65 63 68 6f 20 24 5f 7d 0d 0a              & echo $_}..