Solved

Copy Folder names and not the contents

Posted on 2008-06-25
2
1,696 Views
Last Modified: 2012-06-22
Hi all,

I have a folder on a server that has a couple hundred subfolders in it, with files in those subfolders.

Now i want to create another folder but with the same subfolders in it - BUT WITHOUT the files.

I dont want to retype all the folder names - is there a way to copy the structure only??

Thanks
Sean
0
Comment
Question by:SeanNij
2 Comments
 
LVL 65

Accepted Solution

by:
SheharyaarSaahil earned 500 total points
Comment Utility
0
 
LVL 3

Expert Comment

by:ofkr
Comment Utility
Try it this command from command prompt :

c:\> xcopy /E /T "C:\test\fold1" "C:\test\fold2"

fold1 : your existing folder
fold2 : your new folder to be created.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now