如何在循环中创建文件夹 [英] How to create folders in loop

查看:99
本文介绍了如何在循环中创建文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我是vb.net的新手



i需要实现简单任务。



只需在我的D盘中创建1500个文件夹并将相同的图像文件粘贴到所有1500个文件夹中。



我如何实现它。



我尝试过:



尚未尝试作为VB.NET中的新手,这是我组织的任务。

解决方案

Dim i As Integer



对于i = 1到1500

IO.Directory.CreateDirectory(d:\ foldername&i)

下一步

Hi All,

am a newbie in vb.net

i need to achieve a simple task.

just need to create 1500 folders in my D drive and paste the same image file in all the 1500 folders.

how do i achieve it.

What I have tried:

not yet tried as a newbie in VB.NET and this is my task given by organization.

解决方案

Dim i As Integer

For i = 1 To 1500
IO.Directory.CreateDirectory("d:\foldername" & i)
Next


这篇关于如何在循环中创建文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆