{"id":5376,"date":"2016-05-06T11:15:32","date_gmt":"2016-05-06T02:15:32","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=5376"},"modified":"2016-05-06T11:15:32","modified_gmt":"2016-05-06T02:15:32","slug":"fsogetdrive","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/fsogetdrive\/","title":{"rendered":"FileSystemObject\uff1a\u30c9\u30e9\u30a4\u30d6\u3092\u53d6\u5f97\u3059\u308b\uff08GetDrive \u30e1\u30bd\u30c3\u30c9\uff09"},"content":{"rendered":"<h2>\u30c9\u30e9\u30a4\u30d6\u3092\u53d6\u5f97\u3059\u308b\uff08GetDrive \u30e1\u30bd\u30c3\u30c9\uff09<\/h2>\n<div class=\"m30-l\">\n<p><strong>FileSystemObject\uff08FSO\uff09<\/strong>\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c9\u30e9\u30a4\u30d6\uff08<strong>Drive \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\uff09\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002FileSystemObject\uff08FSO\uff09\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u751f\u6210\u3059\u308b\u65b9\u6cd5\u306f\u3001<a href=\"https:\/\/excelwork.info\/excel\/filesystemobject\/\">\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08FileSystemObject\uff09\u306e\u4f7f\u3044\u65b9<\/a> \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u53d6\u5f97\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>GetDrive<\/strong> ( <em>drivespec<\/em> )<\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<span class=\"red\"><strong>FileSystemObject \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>drivespec&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30c9\u30e9\u30a4\u30d6\u3092\u8868\u3059\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30c9\u30e9\u30a4\u30d6\u6587\u5b57\uff08c\uff09\u3001\u30c9\u30e9\u30a4\u30d6\u6587\u5b57\u3068\u30b3\u30ed\u30f3\uff08c:\uff09\u3001\u30c9\u30e9\u30a4\u30d6\u6587\u5b57\u3068\u30b3\u30ed\u30f3\u3068\u30d1\u30b9\u533a\u5207\u308a\u6587\u5b57\uff08c:\\\uff09\u3001\u4efb\u610f\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5171\u6709\u6307\u5b9a\uff08\\\\netcomputer\\drive1\uff09\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/><\/div>\n<\/div>\n<br \/><br \/>\n<h2>GetDrive \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"GetDrive \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_GetDrive()\r\n\r\n    Dim fso As New FileSystemObject\r\n    Dim myDrive As Drive\r\n    \r\n    Set myDrive = fso.GetDrive(\"C:\\\")\r\n    \r\n    MsgBox \"\u3010\" & myDrive.DriveLetter & \"\u30c9\u30e9\u30a4\u30d6\u3011\" & vbCrLf & _\r\n           \"\u30c9\u30e9\u30a4\u30d6\u7a2e\u985e\uff1a\" & myDrive.DriveType & vbCrLf & _\r\n           \"\u30c9\u30e9\u30a4\u30d6\u6e96\u5099\uff1a\" & myDrive.IsReady\r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/05\/fso_getdrive01.jpg?ssl=1\" rel=\"lightbox[5376]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/05\/fso_getdrive01.jpg?resize=168%2C185&#038;ssl=1\" alt=\"FSO\u3000GetDrive \u30e1\u30bd\u30c3\u30c9\" width=\"168\" height=\"185\" class=\"alignnone size-full wp-image-5377\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>\u30c9\u30e9\u30a4\u30d6\u3092\u53d6\u5f97\u3059\u308b\uff08GetDrive \u30e1\u30bd\u30c3\u30c9\uff09 FileSystemObjec &#8230; <\/p>\n","protected":false},"author":1,"featured_media":5377,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[836],"tags":[721,856,693,722,855,834,63,38],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/05\/fso_getdrive01.jpg?fit=168%2C185&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-1oI","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5376"}],"collection":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/comments?post=5376"}],"version-history":[{"count":2,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5376\/revisions"}],"predecessor-version":[{"id":5405,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5376\/revisions\/5405"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/5377"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=5376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=5376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=5376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}