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

free web hosting
Free Web Hosting, No Ads > CONTRIBUTE > Computers

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 isnt

  1. Converting Audio Files In Vista - how do you do it? (7)
  2. 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...
  3. Delete A Bunch Of Files Using Dos Statement - DOS Delete Command (4)
    when we are running a program.they usually create many files that we don't need.Anyone knows the
    dos commands that we can delete those file at once?if you know could you please tell me that.thanks
    Edit title for spelling error. ...
  4. Password Protected Folders - (5)
    does anyone know how i could make a folder password protected,if posible, in windows. if not is
    there some sorts of program that does that. ~thank you...
  5. What Is The Best Way To Get Files? - cast ur votes here (4)
    hey all..... let everyone know what the best way to get a file,......(which may cost something if u
    buy it)!!!!!...
  6. How To Hide Your Folders - increase the privacy of your personal folders (6)
    here is something that can be extremely useful if you are using a shred computer QUOTE To hide
    folders you can simply disguise the folders as virtual folders. Some examples of virtual folders
    are the Fonts folder, the Recycle Bin, the Control Panel. When you try to open disguised folders,
    you see the contents of a Recycle Bin or Fonts instead of the real documents stored in the folders.
    here's what you'll have to do: Right-click a folder and select Rename. Add the following
    to the folder name “.{21EC2020-3AEA-1069-A2DD-08002B30309D}”. Don’t forget the do...
  7. Sharing The Files With Proffesional - I got the cable (2)
    Hey i got the cable to connect the computers. There connected now but now i need to find out how to
    share files from windows XP proffessional with Home edition. The connection shows as shared but
    when i try to click the home computer(proffessional) it says that i dont have permission to access
    it. I am an administrater of both computers and need to figure out how to connect them both
    together. And also i would like to know how to share the wireless connection from my laptop with my
    home computer. If someone could give me a link or instructions on how to do it i woul...
  8. Quick Tricks For Defeating " Undeletable " Files - May Save You Some Pain (6)
    We've all dealt with viruses. Some of us deal with viruses a lot. And others make their living
    spanking 'em like the naughty issues they are. With any amount of virus-slapping experiance
    youve likely come across that mysteriously " undeletable " file that, for some unGodly reason, cant
    be removed from your precious eMachine. Please note that if you consider your eMachine precious then
    your standards are ludicrously low, but I digress. The reason you cannot delete the file (
    assuming some kind of permission has not been modified to lock it down preventing deleti...
  9. How To Install .style Files On Vbulletin? - For version 3.07 (4)
    Hi, i have vBulletin Version 3.07 on my site up right now. I want to install a style called air and
    when i try to install it by putting the .style file in the box, it doesn't work. It says i need
    a .xml file but the .xml files were not included with the download. Anyone know what i have to do in
    order to make the style load and work properly? thanks in advance....



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

Searching Video's for duplicate, folders, copying, files, hard, isnt
advertisement



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



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free 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