Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SCREENSHOT

Please open the screenshot first, thank you :P

Hi, i have a task to do, i have a .txt file with a list of the locations of the files i need to use

and i would like to collect all of them then copy them into a new location, they files are mixed

in folders with other files, for example i need "C:\texture\Çʵå¹Ù´Ú\prt_ÃÊ¿ø01.bmp" file to be

copied in the new location using the same folder, i'd like to go in "C:\New Location\texture\Çʵå¹Ù´Ú\prt_ÃÊ¿ø01.bmp"

it would have to create those two folders too in the new location, if there were 3 folders on the line, then it should create them too.

i have like 5 .txt files listing me like 100 files each one, i could do this manually but it would take me a lot of hours

to finish transfering file by file, is there way to do it all in one shot? or at least .txt file by .txt file and execute copying?

what are my options?


NOTE: im not a developer, just a regular computer user, so if luckily i get an anwser i'd like step by step how to proceed :D
Posted
Comments
Sergey Alexandrovich Kryukov 26-Jun-11 1:45am    
This is a forum just for software developers.
--SA
atomiq005 26-Jun-11 1:50am    
@SAKRYUKOV thanks for your kind comment, i was recomended this software: http://www.codeproject.com/KB/applications/multicopier.aspx from this site and did not meet my needs, and i thought may be somebody would have a solution for my problem, i'm sutck :'(
Sergey Alexandrovich Kryukov 26-Jun-11 1:54am    
OK, but take a look at my advice below as well -- not just for copying.
--SA
Sergey Alexandrovich Kryukov 26-Jun-11 1:57am    
By the way, if you need to try use some .NET software from this site, you can do it for free. You don't need Visual Studuo, just re-distributable .NET Framework if enough, it goes with compilers. If you're interested, ask me, I'll explain it in detail (or provide a batch file which will build things for your) -- this is easy.
--SA

There are some scripts that could help you do this (for e.g. here[^]), but using this means you should be comfortable running a script.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 26-Jun-11 1:53am    
Sure (a 5), I advised the same plus some more -- please see.
--SA
Abhinav S 26-Jun-11 1:56am    
Thank you SA.
atomiq005 26-Jun-11 1:55am    
how do i run the script?
atomiq005 26-Jun-11 1:57am    
@SAKryukov if you dont mind i'm trying to get out of my mysery :/
Sergey Alexandrovich Kryukov 26-Jun-11 2:09am    
This is not my answer, so I don't get notifications. If you want to ask me a question, please do, but what exactly you want to know. To run batch script you need to either type its name (maybe with parameter) and Enter. You can also click on it in any Shell tool like Explorer. Shell knows how to run it due to registered "extension" '.bat'. (There is no extension per se anymore, but just the part of file name after last dot "." is used by the Shell to know what to do with this kind of file; in case of *.bat is read for commands and each is run. If you read Wikipedia articles I references you will see.)

To talk to me, you need to use "Reply" under this node, otherwise I won't get e-mail notification. Alternatively, comment on my solution using "Add comment".
--SA
One of the ways is to program it in the batch file. Another way is using Windows PowerShell.

See:
http://en.wikipedia.org/wiki/Batch_file#Windows_NT[^],
http://en.wikipedia.org/wiki/Windows_PowerShell[^].

Chances are, you could also do it in a more graphics way using the popular shareware orthodox file manager (http://en.wikipedia.org/wiki/Orthodox_file_manager[^]), especially TotalCommander, see http://en.wikipedia.org/wiki/Total_Commander[^], http://www.ghisler.com/[^].

You can use this product for free for unlimited period of time before you pay for registration. The regular Windows Explorer becomes not used at all. File manipulation (and a lot more) is really powerful, may be enough for your purposes.

—SA
 
Share this answer
 
Comments
Abhinav S 26-Jun-11 1:56am    
More links for the OP to go through.
My 5.
atomiq005 26-Jun-11 4:27am    
i managed to use run the .bat from link that the user Abhinav posted, however it seems to be only pulling one specific location at a time or pull out all the files with the same extensions, i'd like to read my locations from my .txt file and copy the files with their folders and subfolders and place them in the new location, it would take me weeks to learn all the codes, could you guys do me a .bat so it can read the locations from my .txt?
Sergey Alexandrovich Kryukov 26-Jun-11 11:22am    
It it about ALL files, say *.bmp in one directory? Do they all go?
Honestly, select them all in Explorer, hit "Cut", go to new location with Explorer, hit "Paste". Batch file for this case would be two lines:

Start in old location:

@echo off
for %%f in (*.bmp) do copy %%f .\newlocation\%%f
for %%f in (*.bmp) do del %%f

Is it all your need?
Really, install TotalCommander, stop suffering.
--SA
atomiq005 26-Jun-11 15:24pm    
No, because there are files that are in the folders that i dont need :S
i need those files in the list only, i want them to be read from the .txt file, also there are other files that i need too for example files with diferent extension then .bmp i need the .rsm too as it show on the screen..
atomiq005 26-Jun-11 15:28pm    
ok i downloaded totalcommander, how do i do it? :O

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900