{"id":484,"date":"2017-01-18T09:19:19","date_gmt":"2017-01-18T00:19:19","guid":{"rendered":"https:\/\/onaraboo.com\/?p=484"},"modified":"2017-01-25T08:43:26","modified_gmt":"2017-01-24T23:43:26","slug":"visual-baseic-net-%e3%81%84%e3%82%8d%e3%81%84%e3%82%8d%e3%81%aa%e3%83%86%e3%82%af%e3%83%8b%e3%83%83%e3%82%af%ef%bc%99","status":"publish","type":"post","link":"https:\/\/onaraboo.com\/?p=484","title":{"rendered":"Visual Basic.NET \u3044\u308d\u3044\u308d\u306a\u30c6\u30af\u30cb\u30c3\u30af\uff19"},"content":{"rendered":"<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/onaraboo.com\/?p=484\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/onaraboo.com\/?p=484\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Visual Basic.NET \u3044\u308d\u3044\u308d\u306a\u30c6\u30af\u30cb\u30c3\u30af\uff19\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img loading=\"lazy\" decoding=\"async\" src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_line\"><a href='http:\/\/line.me\/R\/msg\/text\/?Visual%20Basic.NET%20%E3%81%84%E3%82%8D%E3%81%84%E3%82%8D%E3%81%AA%E3%83%86%E3%82%AF%E3%83%8B%E3%83%83%E3%82%AF%EF%BC%99%0D%0Ahttps%3A%2F%2Fonaraboo.com%2F%3Fp%3D484' title='LINE\u3067\u9001\u308b' rel=nofollow class='wp_social_bookmarking_light_a' ><img src='https:\/\/onaraboo.com\/wordpress\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/line20x20.png' alt='LINE\u3067\u9001\u308b' title='LINE\u3067\u9001\u308b' width='20' height='20' class='wp_social_bookmarking_light_img' \/><\/a><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/onaraboo.com\/?p=484\" data-text=\"Visual Basic.NET \u3044\u308d\u3044\u308d\u306a\u30c6\u30af\u30cb\u30c3\u30af\uff19\" data-lang=\"ja\">Tweet<\/a><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n<p>\u696d\u52d9\u30a2\u30d7\u30ea\u3067\u4f7f\u7528\u3067\u304d\u305d\u3046\u306a\u3082\u306e\u3092\u4e94\u6708\u96e8\u306b\u8a18\u9332\u3057\u3066\u304a\u304f\u3002<br \/>\n\u307e\u3068\u307e\u308b\u307e\u3067\u5f85\u3063\u3066\u3044\u308b\u3068\u5fd8\u308c\u3066\u3057\u307e\u3046\u305f\u3081\u306b\uff65\uff65\uff65\u3002\uff57\uff57<\/p>\n<p>\u306a\u304a\u3001\u3053\u306e\u30d6\u30ed\u30b0\u5185\u306b\u8a18\u8f09\u3057\u3066\u3044\u308b\u30bd\u30fc\u30b9\u306e\u8ee2\u8f09\u30fb\u8ee2\u7528\u306b\u3064\u3044\u3066\u306f\u4f55\u3082\u7e1b\u308a\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u3054\u4f7f\u7528\u306e\u72b6\u6cc1\u306e\u5982\u4f55\u306b\u554f\u308f\u305a\u3001\u4f5c\u8005\u305f\u308b\u5f53\u65b9\u306f\u7d50\u679c\u306b\u3064\u3044\u3066\u305d\u306e\u8cac\u4efb\u3092\u4e00\u5207\u8ca0\u3044\u307e\u305b\u3093\u3002\u3054\u4f7f\u7528\u306f\u81ea\u5df1\u8cac\u4efb\u306e\u7bc4\u56f2\u3067\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n<h2>\u3010\u4efb\u610f\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u79fb\u52d5\u3059\u308b\u3011<\/h2>\n<p>\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3057\u3066\u51e6\u7406\u304c\u7d42\u308f\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u308a\u3057\u305f\u5834\u5408\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u79fb\u52d5\u3092\u884c\u3046\u3053\u3068\u3067\u904b\u7528\u3067\u304d\u307e\u3059\u3002<br \/>\nSystem.IO.File.Move([\u79fb\u52d5\u5143],[\u79fb\u52d5\u5148])<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n\tSystem.IO.File.Move(&quot;C:\\Sample.csv&quot;, &quot;C:\\Backup\\Sample.csv&quot;)\r\n<\/pre>\n<h4>\u6ce8\u610f<\/h4>\n<p>\u30d5\u30a1\u30a4\u30eb\u540d\u304c\u5143\u30fb\u5148\u3067\u7570\u306a\u308b\u5834\u5408\u306f\u30ea\u30cd\u30fc\u30e0\u79fb\u52d5\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u3010\u4efb\u610f\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3059\u308b\u3011<\/h2>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u69cb\u6587\u3067\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002\u7b2c\u4e09\u5f15\u6570\u306b\u300cTrue\u300d\u3092\u6307\u5b9a\u3059\u308b\u3068\u540c\u540d\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u3063\u305f\u5834\u5408\u306f\u4e0a\u66f8\u304d\u3055\u308c\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u7701\u7565\u53ef\u80fd\u306a[False]\u3067\u3059\u3002<br \/>\nSystem.IO.File.Copy([\u79fb\u52d5\u5143],[\u79fb\u52d5\u5148],True or False)<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n\tSystem.IO.File.Copy(&quot;C:\\Sample.csv&quot;, &quot;C:\\Backup\\Sample.csv&quot;, True)\r\n<\/pre>\n<h2>\u3010\u4efb\u610f\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u3011<\/h2>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u69cb\u6587\u3067\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\nSystem.IO.File.Delete([\u524a\u9664\u30d5\u30a1\u30a4\u30eb\u540d])<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n\tSystem.IO.File.Delete(&quot;C:\\Sample.csv&quot;)\r\n<\/pre>\n<h2>\u3010\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u5b58\u5728\u3092\u78ba\u8a8d\u3059\u308b\u3011<\/h2>\n<p>\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\u3002<br \/>\n\u623b\u308a\u5024\u3067\u300cTrue\u300d\u304b\u300cFalse\u300d\u304c\u8fd4\u308a\u307e\u3059\u3002True\u306e\u5834\u5408\u306f\u300c\u5b58\u5728\u3059\u308b\u300d\u3001False\u306e\u5834\u5408\u306f\u300c\u5b58\u5728\u3057\u306a\u3044\u300d\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>System.IO.File.Exists([\u6307\u5b9a\u691c\u7d22\u30d5\u30a1\u30a4\u30eb\u540d]) = True or False<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n\tIf System.IO.File.Exists(&quot;C:\\Sample.csv&quot;) = True Then\r\n\t\t[\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u6642\u306e\u51e6\u7406]\r\n\r\n\tElse\r\n\t\t[\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u6642\u306e\u51e6\u7406]\r\n\r\n\tEnd If\r\n<\/pre>\n<h2>\u3010\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u3092\u78ba\u8a8d\u3059\u308b\u3011<\/h2>\n<p>\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u5358\u4f4d\u306f\u30d0\u30a4\u30c8\u8868\u8a18\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nSystem.IO.FileInfo\u30af\u30e9\u30b9\u306eLength\u304b\u3089\u30b5\u30a4\u30ba\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n\t'\u30b5\u30a4\u30ba\u78ba\u8a8d\u30d5\u30a1\u30a4\u30eb\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u751f\u6210\u3059\u308b\r\n\tDim objFile As New System.IO.FileInfo(&quot;C:\\Sample.csv&quot;)\r\n\r\n\t'\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u3092\u53d6\u5f97\u3059\u308b\r\n\tDim lngFileSize As Long = objFile.Length\r\n\r\n\t'\u53d6\u5f97\u3067\u304d\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u3092\u8868\u793a\r\n\tMessageBox.Show(lngFileSize &amp; &quot; byte&quot;)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u696d\u52d9\u30a2\u30d7\u30ea\u3067\u4f7f\u7528\u3067\u304d\u305d\u3046\u306a\u3082\u306e\u3092\u4e94\u6708\u96e8\u306b\u8a18\u9332\u3057\u3066\u304a\u304f\u3002 \u307e\u3068\u307e\u308b\u307e\u3067\u5f85\u3063\u3066\u3044\u308b\u3068\u5fd8\u308c\u3066\u3057\u307e\u3046\u305f\u3081\u306b\uff65\uff65\uff65\u3002\uff57\uff57 \u306a\u304a\u3001\u3053\u306e\u30d6\u30ed\u30b0\u5185\u306b\u8a18\u8f09\u3057\u3066\u3044\u308b\u30bd\u30fc\u30b9\u306e\u8ee2\u8f09\u30fb\u8ee2\u7528\u306b\u3064\u3044\u3066\u306f\u4f55\u3082\u7e1b\u308a\u306f\u3042\u308a\u307e\u305b\u3093\u3002 \u3054\u4f7f&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/onaraboo.com\/?p=484\">Read more<span class=\"screen-reader-text\">Visual Basic.NET \u3044\u308d\u3044\u308d\u306a\u30c6\u30af\u30cb\u30c3\u30af\uff19<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,5,2],"tags":[],"class_list":["post-484","post","type-post","status-publish","format-standard","hentry","category-visual-basic-net","category-5","category-2","entry"],"_links":{"self":[{"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/posts\/484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/onaraboo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=484"}],"version-history":[{"count":0,"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/posts\/484\/revisions"}],"wp:attachment":[{"href":"https:\/\/onaraboo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onaraboo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onaraboo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}