Jul 25, 2008

How To Duplicate Folders Without Copying Files In Them? - hard question, isnt it?

Free Web Hosting, No Ads > CONTRIBUTE > Computers

free web hosting

How To Duplicate Folders Without Copying Files In Them? - hard question, isnt it?

MusicOnly
Here s the thing. I have large number of folders with files in it. i need to copy folders but without files in it, becuase i dont want to write folders name manually( i have about 5000 folders) and i guess i wont be quickly finished.

why would i wanted to do that.

it s kinda like this:
you have dvd file and you want to record the soundtrack into mp3 file. but you want to save them on other disc.
its easy with 1-10 folders but i have situation with 5000 folders and i need to do this.

so can anyone please help me?

Reply

jlhaslip
Php scripting could handle this. It wouldn't be too difficult, actually.
Reading the Directory structure recursively from a top level directory and using the mkdir() function to create another similarly named folder in another disk location.
There are scripts around which perform sitemaps by reading the contents of a site and listing the file names as links. Borrowing from the logic used in the sitemap script, simply use the mkdir() function to create a new blank folder elsewhere, and maybe chmod() the folders to whatever permissions you chose during the building of them.
Check at [ hotscripts dot com ] to see what they have along the lines of a sitemap application and modify that, maybe?
Of course, you would need an input form to indicate the starting point for the recursive search and to input the new path for the empty folders. But it would be doable.
Unfortunately(?), I am busy with other stuff and am not able to do this for you, so if the task at hand is beyond your knowledge, enlist someone to assist with the scripting.
Or Google on it. Perhaps someone has an available script out there???
Keep us posted as to how it goes. Perhaps a Tutorial might come out of it?

 

 

 


Reply

MusicOnly
i founded this soulution but i dont know how to use it

http://www.ozzu.com/ftopic68389.html

can anyone tell me where do i have to enter this command

Reply

jlhaslip
(assuming you have windows machine)
Click Start > run > xcopy blah.... as per that forum posting

Make sure to specify the start and destination folders as fullpaths, like: c:\windows\etc...

Reply

MusicOnly
i got it. problem solved and i ll write small tutorial.

number of folders 6.668.
and they were all copied in 20 seconds.

thanks jlhaslip

Reply

BuffaloHELP
Ah... xcopy... ye olde DOS 3.3 command circa 1987. For more information of xcopy take a look at http://www.computerhope.com/xcopyhlp.htm and Microsoft

This is just a comment that soon people will not know what a calculator is or a rotary dial and pulse... smile.gif

Reply

jlhaslip
I remember the "crank up" phones.
An Aunt and Uncle had one on their Farm... ah... the memories of that place...
And thank you's appreciated. Glad to help.

Reply

kdr_98
It depends what OS he is using , with unix (or linux) you can do this job easy with shell scripting.
Simply read the foldername and create the folder on the other disk.

For Windows is that job a bit harder with a MS-DOS batch file you can create folders but reading the name from a external source maybe a problem.
I should suggest you use Visual Basic (or VB script).
There you can use the command DIR (to get the foldernames) and you can also create folders.
If you give an example the script can be easly written , it will be a about 10 or 20 lines.

You can start the VB script with Internet Explorer (if you haven't disabled this).

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : duplicate, folders, copying, files, hard, isnt

  1. How Can You Get Audio Files From Itunes Videos?
    (0)
  2. Naming Web Page Files
    Which way you like- MyPage.html or my-page.html or my_page.html (5)
    Everybody talks about meta tags, keywords, good title names and how they can increase page rankings,
    etc. But I was wondering whether the page name itself holds any value in indexing. Yes, I am
    talking about the web page file names (some-thing.html) NOT the one which you put in title tags. I
    am going to express my views and want to know what you think is correct. I have seen pages named in
    various ways like these: 1) my_web_page.html 2) DoYouLikeMyPage.html 3) hey-see-my-webpage.html (I
    think this way is more appropriate) 4) this.is.a.page.html (somewhat confusing) ....
  3. Fps/tps Co-op Games
    Finding them is hard, but when you do... (1)
    This post is for FPS/TPS games ONLY. Alrighty now, that is my first post so be gentle on me.
    Firstable let me introduce myself: I've played loads of loads of games, and I can consider
    myself as a gamer, and I study in a school of "gamers", by that I mean that most of them are just
    geeks that play MMORPG's like WOW and stuff... the other part are athletes that play NFL Madden
    but most of the school is built of people who actually play in great games that came out not so
    recently ago, like Crysis, F.E.A.R (Which is kind of old now) and The Orange Box (Not talking....
  4. Audio Files?
    (3)
    I need some help. Is it possible to get audio files off of sites? Like IMEEM and YouTube. I know the
    whole http://www.file2hd.com thing. It doesn't always work though. Are there other ways? Is
    there a way people hack audio files off of sites? NOTE: I DO NOT WANT DO THIS! I merely want to
    know so that I can protect my sites from it. Thanks.....
  5. Jar Executable Files
    (1)
    I have been supplied with a digital log book for use this semester and it comes in the form of a
    .jar file and a .mdb file. I tried running it on my mac but it crashes every time but it seems to
    run perfectly on windows xp. Does anyone have any ideas why? I thought .jar files would be
    computable on any platform. ....
  6. Best Way To Transfer Files
    I just bought a laptop (6)
    Hi there guys, I just bought a brand new Dell Inspiron laptop for $729.99. It has a
    processing speed of 2.0ghz, 3GB RAM, and a 250gb hard drive. I'm really satisfied, especially
    with the wireless internet and the fact that I can carry my computer around with me, allowing you to
    use your computer in comfortable spots -- outside in the shade, on the train, or even in your bed
    where I'm using it write now as I type. If you didn't already guess, this is my first
    laptop. But I do have some issues. Does anyone happen to know an easy way to transfer some ....
  7. 1350 Great Free Logos (jpg + Psd)
    With both jpg and original psd files to edit (7)
    1350 Great Free Logos (With both jpg and psd files)
    http://rapidshare.com/files/126291346/1346...Great.Logos.zip This is a great collection of
    logos, they are already made logos which you can use like that or just use to create other logos, do
    what you want, they are free, they came from free websites that give this logos for free and lot
    more, but i just took the good ones mainly. There is also a small collection of 100 logos inside
    the compressed file, which you can use to insert those graphics in your logo/design/web design
    projects, do what you want with them ....
  8. Help For My Seagate Sata Hard Drive!
    hard drive stops working randomly, please help! (7)
    I just bought that disk (seagate SATA 500G) half year ago and found it stop working randomly,
    resulting the whole system to be dead. BTW, I am using Win XP. I tried to use seatool, provied by
    seagate, to scan and repair the error, the program stop at the half of the process. I even can't
    format entirely, just do quick format. I don't know what I can do and have been pissed off for a
    few days. hope some people have this kind of experience and give me any idea. I don't want to
    loss my 500G data storeage. thanks in advance.....
  9. Msn My Sharing Folders
    (0)
    I have installed MSN Messenger dozens of times but I keep getting the same result when I try to use
    MySharingFolders. When I drag a file into a contact it tries to send the file not to place it in the
    MySharingFolders fr sincronizing. Where do I change these settings? This time I'm sure it's
    not MSN but me who is messing things up.....
  10. Debug Exe Files
    How to debug an exe file. (4)
    Think that we have written a program, and some codes are wrong. We can go back to compiler and
    change the code, and compile again. But I will show you how to correct our mistakes without using
    the compiler. Let's start: I have written a program in Delphi. Let's see my mistake. I
    have created a form like this. After this I wrote the codes in the Compare Button click as
    below. CODE 1.   procedure TForm1.ComparebuttonClick(Sender: TObject); 2.   var
    3.     a,b:integer; 4.   begin 5.     a := StrToInt(EditA.Text); 6.     b :....
  11. Strange Isn't It...
    (0)
    Website: Warning: If you are an ardent lover of animals, you may find this video extremely
    disturbing. Viewer discretion is advised. If not wishing to see the video, synopsis of the video is
    provided below the link. http://www.tosspuppy.com/ Strange isn't it...how cruel a person
    can be? How violence and war can turn the goodest of people into monsters? For people who
    didn't see the video (and don't want to see the video), it shows two disgraceful American
    soldiers from the United States Marine Corps throwing a white-black puppy into a valley. The....
  12. Mysql
    Several files in one field. (2)
    Hi guys. I want t know if it is posible to have so many entries for one object in a field in MySQL.
    I know my question may not be clear because I lack in terminology but pliz try and help. What I want
    to do is for axample have a database of my clients with the following fields for every client:
    fname, lname, more than one photos, contrubutions(comments, jokes, testimonials posted) etc. I want
    to have the things like the photos in the same field but they have to be unique so that my php code
    can deal with them individually llike they are coming from different fields.....
  13. Osx Hard Disk Drive Recovery
    (5)
    Anybody know of any software that will allow me to mount an OS X 10.4 disk under Windows so I can
    recover some or all of his data?....
  14. Converting Audio Files In Vista
    how do you do it? (7)
    Ok, so I have some .wav files that I'd like converted into .mp3. I knew how to do it in XP, but
    I can't find windows audio converter in Vista....does vista even have that, or is it under a new
    name? Also, is it possible to convert video files, like .flv into .avi?....
  15. Haha, This Isn't My Rant, But It's A Very Good One
    (4)
    i've been reading this blog for a while and i always sympathize with the writers feelings and
    feel as tho thats how my own life is, check this one out from christmas 2007: QUOTE December
    19, 2007 Merry Christmas Hi Everyone, I know I said this blog was closed, but I just thought I
    would do a posting. It is the Christmas time of year again, so I thought I would write a message.
    2007 has been a tough year for me, so I am going to be happy to see the end of it. Not for any one
    reason, just for a lot of reasons, none of which I will write about. I just wanted to w....
  16. A Hard Question On Islam
    no disrespecting and such just curious (13)
    it is true that islam is a religion not of war but peace. i for am one born to a familiy with both
    catholic and islam as a religion in parts of my family. but my family don't want to answer this
    question because they say its blasphemous and such so if anyone would answer this one that has islam
    a full part of his life then how come: when you go to heaven, youll be given a number of virgins as
    a reward? then does that mean women are just objects and nothing else? /unsure.gif"
    style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> am for o....
  17. Hard Drive Recovery
    (9)
    One of my friends dropped her Dell Inspiron 1501 and the computer now won't boot. On inspection,
    the computer takes a long time to finish POST, then displays that it's loading Broadcom drivers,
    Intel drivers, and then it displays: No OS detected. Check PXE ribbon . So I restart, check out
    the BIOS, and it shows me that the computer isn't even seeing the hard drive. (I'm
    personally used to a computer telling me that it can't find bootable media in this case, but I
    guess newer computers, or just Dell, now tells you that an OS isn't being detected....
  18. Problem With My External Hard Disk
    (7)
    I have a Sony VAIO 100GB External Hard drive that has recently been acting up. I got it from eBay
    about 8 months ago. Yesterday I accidentally pulled the plug on it and I accidentally used windows
    vista (which currently has no anti-virus program). Today when I turned on the computer it said
    'Unable to write to disk, please make sure that the device is plugged in' I did the
    'safely remove hardware' thing, but then the computer became really slow... So I waited and
    waited... for 6 minutes, then I waited long enough and pulled the plug. I tried to restar....
  19. How To Disable "show Hidden Files And Folders" In Folder Option
    (11)
    How to disable "Show hidden files and folders" in Folder Option As you know, you can hide files
    or folders in Microsoft Windows ( to hide a file or folder , right click on file or folder >select
    properties and then select Hide file) But if you open Folder Option and check "Show hidden files
    and folders " you can see hidden files. to disable "Show hidden files and folders" feature follow
    below steps : 1- Click start > Run > type regedit to run Windows Registry Editor. 2- Go to following
    address: QUOTE HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/Current Versio....
  20. How Hard Is It To Grow Up Being Disabled?
    (12)
    I was born with Congenital Heart Failure, not Congestive and different. With Congenital Heart
    Failure, my body was not even able to support itself, when I was born I was named one of the
    nation's sickest infants. In Whittier, California they split apart Imperial Highway just to get
    me out. They couldn't do it by air because of the weather. As I grew older, I lived life
    normally. I never knew what I had. I had lived life as a normal kid. When the time came around when
    I was five or six I came down with Kalaskis Diease (I cannot spell the first one, pronoucned Ca....
  21. Informix To Sql Server (or How To Open .unl Files)
    how to import .unl files into SQL Server 2000 without Informix softwar (2)
    Does anyone know how to import .unl files into SQLServer 2000? My boss gave me this task to migrate
    an old database into SQLServer. I don't have informix installed since the files were sent to me
    via email. All files have .unl extension and I don't have a clue how to view them. I've
    tried opening them using excel but it can't be read. Does anyone know how to do this? Or at
    least know how to open/view the file using excel or any other program that could be easily migrated
    to sqlserver? Please, I need to migrate the files as soon as possible. Thanks....
  22. Strange .log Files On My Desktop
    (10)
    Since this morning, two new visitors has camped out on my desktop. One is lcapi0.log , & when you
    open it you get: QUOTE 19:50:36.703 F20:F24 WARN :: module=lcapi flavor=fre
    version=1.7.226.0 (RTC Version 4.3.5371.0) 19:50:38.109 F20:F24 INFO :: Initialize(0) 19:50:38.609
    F20:F24 INFO :: MUI not Enabled 19:50:44.625 F20:F24 INFO :: SetDeviceDisabled 0->0 19:50:44.656
    F20:F24 INFO :: SetDeviceDisabled 0->1 19:50:44.656 F20:F24 TRACE :: SetDevice 00000000->00000000
    19:50:44.656 F20:F24 INFO :: SetDeviceDisabled 0->0 19:50:44.656 F20:F24 TRACE :: SetDevic....
  23. Speed Up Your Internet Explorer Fast As Firefox
    Internet Explorer isn't slow (17)
    This is s little tip that you can make your Internet Explorer browser can run fast as Firefox
    browser. You can make it by following the step by step below step 1: first you go to start menu
    and then choose run. step2: After you choose run,it appears a little box,then you can type regedit.
    step3:Find the key that you need by following this HKEY_CURRENT_USER \ Software \
    Microsoft \ Windows \ CurrentVersion \ InternetSettings step4:On the right box,right
    click and choose new ,then continue choose DWORD Value step5:type into the box : MaxConnec....
  24. What Is God?
    simple question, hard to answer! (52)
    Yeah this is the only thing I'd like to know! Is he a big old man with a beard somewhere
    above us (interstingly what is UP on one side of the earth is DOWN on the other side of it - so
    where is God then if we point up there?)??? Is he inside of us? Are we all a part of god? Is God
    present in everything that surrounds us? Isn't it interesting that GOD is very close to GOOD?
    Maybe it is a metaphore for being and doing GOOD things?? That is something we have inside of us -
    every normal human being has this feeling for what is good and bad and is tryin' to f....
  25. The Reason Why People Get Drunk?
    Isn't there a 1,000,000 other things you can do? (33)
    OK i'm not talking about having a glass of wine a dinner. I'm also not talking about people
    who have drinking problems. I'm talking about why do people decide to get drunk for fun?
    Don't call me a prude cause i have drank before and even gotten into trouble at school for it. I
    did all of those because it was "cool" I have never understood why people just decide to get drunk
    though. One of my friends that comes over and is also one of the the main person in the O&J
    Productions crew (http://ojproductions.net my site) Always goes," we should get wasted ton....
  26. Linux Question: Amarok And File Permissions
    please help, i can't get it to work with all music files (4)
    hey, i use to use Linux DC++ to download music from some hubs and i usually download it to
    /home/downloads/ and then i move the files to my collection on another HDD a sata one, on
    sda3/music/ but when i move the files using krushader root mode they become posessed by root and
    amarok can't play them displaying a locker on the file's icon. I tried to " chmod 774 music
    ", where music is my music directory, as root in konsole but no luck. What should i do to make a
    whole directory accessible from amarok as user?....
  27. Does Anyone Know How To Make Exe Files
    (17)
    Does anyone know any software for making exe files, I want to make simple programs not propper
    one's. Thanks.....
  28. Read-only Folders In Xp
    Can't change Read-Only attribute in XP (11)
    Hi, I am working with a firma. We use WinCvs which is a software similar to perforce. I downloaded
    the developement to C: (eg. c:/development) The folder c:/development and the folders under it have
    Read-Only permisions. I need to remove that restriction. I press right-button, i unchecked the
    read-only check-box and i apply to this folder and folders under it. Whe it finisehd i click ok. Whe
    i press the right button again i discovered that the folder has still the read-only attribute. So it
    seems nothing changed. something similar happen to you? How can i uncheck the ....
  29. Converting Video Files From One Format To Another
    help plz :) (6)
    hey i have learnt this nice way to open mov files in imageready and insert them in sigs,graphics and
    other stuff its really cool,this only works with .mov files and i really need to know if sumone here
    can do that,i need to change a wmv file into a .mov file so i cant add the movie to a sig,i have
    tried many video format conversion programs but they dont accept the mov format,the mov format is a
    quicktime video format,so anyone here know how to change a video file into a quicktime mov video
    format? thnx in advance....
  30. Sata Hard Drive Not Recognized By Windows
    WD 250gb SATA hard drive not working (12)
    Hi there! I recently re-installed windows on my 250 gb WD SATA hard drive. I had a 50 gb
    windows partition and the rest for files. First thing that happened was my system partition
    wouldn't boot and eventually chkdsk said that the mbr was unrecoverable. A friend recommended
    that i use a seperate parallel hard drive to load windows and then convert the disk to dynamic in
    disk management. I did this, but the computer crashed and now windows won't even load with the
    SATA hard drive connected. The BIOS sees the SATA hdd, but that's as far as I can get. I tri....

    1. Looking for duplicate, folders, copying, files, hard, isnt

Searching Video's for duplicate, folders, copying, files, hard, isnt
Similar
How Can You
Get Audio
Files From
Itunes
Videos?
Naming Web
Page Files -
Which way
you like-
MyPage.html
or
my-page.html
or
my_page.html
Fps/tps
Co-op Games
- Finding
them is
hard, but
when you
do...
Audio Files?
Jar
Executable
Files
Best Way To
Transfer
Files - I
just bought
a laptop
1350 Great
Free Logos
(jpg + Psd)
- With both
jpg and
original psd
files to
edit
Help For My
Seagate Sata
Hard
Drive! -
hard drive
stops
working
randomly,
please
help!
Msn My
Sharing
Folders
Debug Exe
Files - How
to debug an
exe file.
Strange
Isn't
It...
Mysql -
Several
files in one
field.
Osx Hard
Disk Drive
Recovery
Converting
Audio Files
In Vista -
how do you
do it?
Haha, This
Isn't My
Rant, But
It's A
Very Good
One
A Hard
Question On
Islam - no
disrespectin
g and such
just curious
Hard Drive
Recovery
Problem With
My External
Hard Disk
How To
Disable
"show
Hidden Files
And
Folders"
; In Folder
Option
How Hard Is
It To Grow
Up Being
Disabled?
Informix To
Sql Server
(or How To
Open .unl
Files) - how
to import
.unl files
into SQL
Server 2000
without
Informix
softwar
Strange .log
Files On My
Desktop
Speed Up
Your
Internet
Explorer
Fast As
Firefox -
Internet
Explorer
isn't
slow
What Is God?
- simple
question,
hard to
answer!
The Reason
Why People
Get Drunk? -
Isn't
there a
1,000,000
other things
you can do?
Linux
Question:
Amarok And
File
Permissions
- please
help, i
can't
get it to
work with
all music
files
Does Anyone
Know How To
Make Exe
Files
Read-only
Folders In
Xp -
Can't
change
Read-Only
attribute in
XP
Converting
Video Files
From One
Format To
Another -
help plz :)
Sata Hard
Drive Not
Recognized
By Windows -
WD 250gb
SATA hard
drive not
working
advertisement



How To Duplicate Folders Without Copying Files In Them? - hard question, isnt it?



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE