{"id":5322,"date":"2016-04-12T20:25:30","date_gmt":"2016-04-12T11:25:30","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=5322"},"modified":"2016-04-12T20:25:30","modified_gmt":"2016-04-12T11:25:30","slug":"fsodriveexists","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/fsodriveexists\/","title":{"rendered":"FileSystemObject\uff1a\u30c9\u30e9\u30a4\u30d6\u306e\u5b58\u5728\u78ba\u8a8d\uff08DriveExists \u30e1\u30bd\u30c3\u30c9\uff09"},"content":{"rendered":"<h2>\u30c9\u30e9\u30a4\u30d6\u306e\u5b58\u5728\u78ba\u8a8d\uff08DriveExists \u30e1\u30bd\u30c3\u30c9\uff09<\/h2>\n<div class=\"m30-l\">\n<p><strong>FileSystemObject\uff08FSO\uff09<\/strong>\u3092\u4f7f\u7528\u3057\u3066\u3001\u6307\u5b9a\u3057\u305f\u30c9\u30e9\u30a4\u30d6\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\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>    <em>object<\/em>.<strong>DriveExists<\/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\u6587\u5b57\u307e\u305f\u306f\u5b8c\u5168\u306a\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>\u623b\u308a\u5024&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<em>drivespec<\/em> \u3067\u6307\u5b9a\u3057\u305f\u30c9\u30e9\u30a4\u30d6\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u3001<strong>True<\/strong>\u3001\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u3001<strong>False<\/strong>\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\">\u30ea\u30e0\u30fc\u30d0\u30d6\u30eb\u30e1\u30c7\u30a3\u30a2\u3092\u4f7f\u7528\u3059\u308b\u30c9\u30e9\u30a4\u30d6\u306e\u5834\u5408\u306f\u3001\u30e1\u30c7\u30a3\u30a2\u304c\u5b58\u5728\u3057\u306a\u304f\u3066\u3082 <strong>True<\/strong> \u3092\u8fd4\u3057\u307e\u3059\u3002\uff08\u30c9\u30e9\u30a4\u30d6\u306e\u6e96\u5099\u304c\u3067\u304d\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001<strong>FileSystemObject<\/strong> \u306e <strong>Drive \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u306e <strong>IsReady \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\uff09<\/p>\n<\/p><\/div>\n<\/div>\n<br \/><br \/>\n<h2>ConvertFormula \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=\"DriveExists \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_FSO_driveExists()\r\n    \r\n    Dim fso As New FileSystemObject\r\n    \r\n    If fso.DriveExists(\"D\") = True Then\r\n        MsgBox \"D \u30c9\u30e9\u30a4\u30d6\u306f\u5b58\u5728\u3057\u307e\u3059\u3002\"\r\n    Else\r\n        MsgBox \"D \u30c9\u30e9\u30a4\u30d6\u306f\u5b58\u5728\u3057\u307e\u305b\u3093\u3002\"\r\n    End If\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\/04\/fso_driveexists.jpg?ssl=1\" rel=\"lightbox[5322]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/04\/fso_driveexists.jpg?resize=182%2C155&#038;ssl=1\" alt=\"FSO DriveExists \u30e1\u30bd\u30c3\u30c9\" width=\"182\" height=\"155\" class=\"alignnone size-full wp-image-5321\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>\u30c9\u30e9\u30a4\u30d6\u306e\u5b58\u5728\u78ba\u8a8d\uff08DriveExists \u30e1\u30bd\u30c3\u30c9\uff09 FileSystemOb &#8230; <\/p>\n","protected":false},"author":1,"featured_media":5321,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[836],"tags":[721,844,693,722,834,63,38],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/04\/fso_driveexists.jpg?fit=182%2C155&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-1nQ","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5322"}],"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=5322"}],"version-history":[{"count":2,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5322\/revisions"}],"predecessor-version":[{"id":5356,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5322\/revisions\/5356"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/5321"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=5322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=5322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=5322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}