Copy files with folders

Posted: 03-31-2009, 07:56 PM
Does anyone know if there is a way to copy files with their respective
folder locations?

I'm looking to do a Windows Search, and copy and paste the files found to
another location
but
I need the folder structure of the original file to be copied with the file,
so that its original location is intact.


i.e. if Windows Search finds someting in C:\Users\User1\Documents\File.docx
then we want it to copy and paste to
D:\SearchResults\Users\User1\Documents\File.docx


Is this possible?

Thanks beforehand,

Jacques

Copy files with folders


Responses to "Copy files with folders"

Pavel A.
Guest
Posts: n/a
 
Re: Copy files with folders
Posted: 04-01-2009, 09:25 AM
If you manually select the files to copy, you can write
a simple cmd script, and drag the file onto it.
Something like this:

md d:\searchresults\%~p1 && copy %1 d:\searchresults\%~p1

Or, write a shell extension (right click handler or SendTo
target - a bit more complicated)

-- pa


Jacques Latoison wrote:
> Does anyone know if there is a way to copy files with their respective
> folder locations?
>
> I'm looking to do a Windows Search, and copy and paste the files found
> to another location
> but
> I need the folder structure of the original file to be copied with the
> file, so that its original location is intact.
>
>
> i.e. if Windows Search finds someting in C:\Users\User1\Documents\File.docx
> then we want it to copy and paste to
> D:\SearchResults\Users\User1\Documents\File.docx
>
>
> Is this possible?
>
> Thanks beforehand,
>
> Jacques
Jacques Latoison
Guest
Posts: n/a
 
Re: Copy files with folders
Posted: 04-01-2009, 03:59 PM
Are you saying that I have to do this for each file, seperately?



"Pavel A." <pavel_a@NOfastmailNO.fm> wrote in message
news:ejUqXvqsJHA.1208@TK2MSFTNGP04.phx.gbl...
> If you manually select the files to copy, you can write
> a simple cmd script, and drag the file onto it.
> Something like this:
>
> md d:\searchresults\%~p1 && copy %1 d:\searchresults\%~p1
>
> Or, write a shell extension (right click handler or SendTo
> target - a bit more complicated)
>
> -- pa
>
>
> Jacques Latoison wrote:
>> Does anyone know if there is a way to copy files with their respective
>> folder locations?
>>
>> I'm looking to do a Windows Search, and copy and paste the files found to
>> another location
>> but
>> I need the folder structure of the original file to be copied with the
>> file, so that its original location is intact.
>>
>>
>> i.e. if Windows Search finds someting in
>> C:\Users\User1\Documents\File.docx
>> then we want it to copy and paste to
>> D:\SearchResults\Users\User1\Documents\File.docx
>>
>>
>> Is this possible?
>>
>> Thanks beforehand,
>>
>> Jacques
Pavel A.
Guest
Posts: n/a
 
Re: Copy files with folders
Posted: 04-02-2009, 12:06 PM
Jacques Latoison wrote:
> Are you saying that I have to do this for each file, seperately?
I'm asking how you want it to be: manually or as automated/unattended job.
If manually, the example below can be easily adapted to handle several
files passed to it in the command line.

--pa
> "Pavel A." <pavel_a@NOfastmailNO.fm> wrote in message
> news:ejUqXvqsJHA.1208@TK2MSFTNGP04.phx.gbl...
>> If you manually select the files to copy, you can write
>> a simple cmd script, and drag the file onto it.
>> Something like this:
>>
>> md d:\searchresults\%~p1 && copy %1 d:\searchresults\%~p1
>>
>> Or, write a shell extension (right click handler or SendTo
>> target - a bit more complicated)
>>
>> -- pa
>>
>>
>> Jacques Latoison wrote:
>>> Does anyone know if there is a way to copy files with their
>>> respective folder locations?
>>>
>>> I'm looking to do a Windows Search, and copy and paste the files
>>> found to another location
>>> but
>>> I need the folder structure of the original file to be copied with
>>> the file, so that its original location is intact.
>>>
>>>
>>> i.e. if Windows Search finds someting in
>>> C:\Users\User1\Documents\File.docx
>>> then we want it to copy and paste to
>>> D:\SearchResults\Users\User1\Documents\File.docx
>>>
>>>
>>> Is this possible?
>>>
>>> Thanks beforehand,
>>>
>>> Jacques
>
Jacques Latoison
Guest
Posts: n/a
 
Re: Copy files with folders
Posted: 04-02-2009, 05:06 PM
I want it to get its info from the Windows Search itself,
meaning,
it runs a search (which would include a content search) and copies the
files, with folder structure, to another location.


"Pavel A." <pavel_a@NOfastmailNO.fm> wrote in message
news:eFgxqt4sJHA.3988@TK2MSFTNGP05.phx.gbl...
> Jacques Latoison wrote:
>> Are you saying that I have to do this for each file, seperately?
>
> I'm asking how you want it to be: manually or as automated/unattended job.
> If manually, the example below can be easily adapted to handle several
> files passed to it in the command line.
>
> --pa
>
>> "Pavel A." <pavel_a@NOfastmailNO.fm> wrote in message
>> news:ejUqXvqsJHA.1208@TK2MSFTNGP04.phx.gbl...
>>> If you manually select the files to copy, you can write
>>> a simple cmd script, and drag the file onto it.
>>> Something like this:
>>>
>>> md d:\searchresults\%~p1 && copy %1 d:\searchresults\%~p1
>>>
>>> Or, write a shell extension (right click handler or SendTo
>>> target - a bit more complicated)
>>>
>>> -- pa
>>>
>>>
>>> Jacques Latoison wrote:
>>>> Does anyone know if there is a way to copy files with their respective
>>>> folder locations?
>>>>
>>>> I'm looking to do a Windows Search, and copy and paste the files found
>>>> to another location
>>>> but
>>>> I need the folder structure of the original file to be copied with the
>>>> file, so that its original location is intact.
>>>>
>>>>
>>>> i.e. if Windows Search finds someting in
>>>> C:\Users\User1\Documents\File.docx
>>>> then we want it to copy and paste to
>>>> D:\SearchResults\Users\User1\Documents\File.docx
>>>>
>>>>
>>>> Is this possible?
>>>>
>>>> Thanks beforehand,
>>>>
>>>> Jacques
>>
 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't copy files to folders in Program Files Larc Windows XP 10 01-17-2009 12:21 AM
To copy files and folders to a CD Bubble Windows XP Photos 6 01-04-2007 02:04 AM
How to copy files from folders Mike Windows XP New Users 4 06-28-2004 04:45 PM