创建文件夹 [英] Creating a Folder

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

问题描述

在我的办公室,我们有一个文件夹,其中包含我们拥有的每个客户的子文件夹。  每年我们都需要在每个客户端文件夹中创建一个新文件夹,其中包含该年度新业务的文件,因此文件夹路径如下所示:

At my office we have a folder that contains a subfolder for each client we have.  Every year we need to make a new folder within each client folder that contains the files for new business of that year, so the folder path looks something like this:

C:/ Clients / 客户名称 /新业务2014

C:/Clients/Client Name/New Business 2014

(C:/实际上是服务器上的共享,而不仅仅是硬盘)

(with the C:/ actually being a share on a server, not simply a hard drive)

我们有超过300个客户端文件夹,现在是我发现创建"新业务"的最简单方法。文件夹是打开每个客户端文件夹并将其粘贴进去。但是,由于我必须在每个客户端文件夹中粘贴相同的文件夹,因此需要花费
相当多的时间。  我想知道我是否可以创建一个脚本,只需在每个客户端文件夹中放置相同的文件夹(例如"New Business 2014"),而不必每年手动执行此操作。  有任何建议吗?

We have over 300 client folders, and right now the easiest way I have found to create the "New Business" folder is to open every client folder and just paste it in.  But since I have to paste the same folder in every client folder, it takes quite a bit of time.  I was wondering if I could create a script that simply puts the same folder (ex. "New Business 2014") in every client folder without me having to manually do it every year.  Any suggestions?

推荐答案

在PowerShell中

In PowerShell

Get-ChildItem  c :\ _clients -directory | %{

Get-ChildItem c:\clients -directory | %{


_。CreateSubDirectory('新业务2014')}
_.CreateSubDirectory('New Business 2014') }


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

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