トップページ(目次)

457.PCのすべてのドライブ名を取得する②

<実行前後>
 → 
Sub PCのすべてのドライブ名を取得する②()

    Set システム = CreateObject("Scripting.FileSystemObject")

    For Each ドライブ In システム.Drives
    
        行 = 行 + 1
        
        Range("A" & 行) = ドライブ.DriveLetter
    
    Next

End Sub

Copyright © 2021 https://excel3000.web.fc2.com/ All Rights Reserved.
    inserted by FC2 system