Info here: http://www.ss64.com/nt/xco
Main Topics
Browse All Topicshi
can somebody tell me how to copy all the subfolders of a folder without copying any file contents. Basically i want to copy all the home folders of the users without their contents (just empty folders). Camn i do it with xcopy or xxcopy??
many thanks in advance
Christos
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Info here: http://www.ss64.com/nt/xco
Hi,
Treecopy should do the trick for you. It's free and extremely efficient. It can be found here : http://www.rjlsoftware.com
HTH
Cheers
thank you both. However, i'd like to say that i want to copy only the first level of folders (not any deeper) . Say for example i have a folder called 'Granfather' that contains several subfolders called "father1". "father2" etc, which in turn contain other subfilders named "son1" etc. i want to copy all the father folders but NOT the "son" folders that are suubfolders of the "fathers". Can i do this ? if yes how?
Copy the text below into a new file with a .cmd extension. Customize the values of the "source" and "destination" variables with the correct paths. Double-clicking the file will then create the source folder's subfolders (but not any subfolders of theirs) in the destination folder.
@echo off
setlocal
REM The folder currently containing the subfolders.
set source=C:\Grandfather
REM The location in which to re-create all of the subfolders.
set destination=C:\new users
for /F "tokens=* usebackq" %%G in (`dir "%source%" /A:D /B`) do md "%destination%\%%G"
endlocal
Business Accounts
Answer for Membership
by: and235100Posted on 2007-08-16 at 06:38:29ID: 19707916
You can use xcopy and the /T and /E switches (copy just folder structure and empty folders)