Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista file management

Vista - Copy files with folders

Reply
 
Old 03-31-2009   #1 (permalink)
Jacques Latoison


 
 

Copy files with folders

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


My System SpecsSystem Spec
Old 04-01-2009   #2 (permalink)
Pavel A.


 
 

Re: Copy files with folders

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:
Quote:

> 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
My System SpecsSystem Spec
Old 04-01-2009   #3 (permalink)
Jacques Latoison


 
 

Re: Copy files with folders

Are you saying that I have to do this for each file, seperately?



"Pavel A." <pavel_a@xxxxxx> wrote in message
news:ejUqXvqsJHA.1208@xxxxxx
Quote:

> 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:
Quote:

>> 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
My System SpecsSystem Spec
Old 04-02-2009   #4 (permalink)
Pavel A.


 
 

Re: Copy files with folders

Jacques Latoison wrote:
Quote:

> 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
Quote:

> "Pavel A." <pavel_a@xxxxxx> wrote in message
> news:ejUqXvqsJHA.1208@xxxxxx
Quote:

>> 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:
Quote:

>>> 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
>
My System SpecsSystem Spec
Old 04-02-2009   #5 (permalink)
Jacques Latoison


 
 

Re: Copy files with folders

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@xxxxxx> wrote in message
news:eFgxqt4sJHA.3988@xxxxxx
Quote:

> Jacques Latoison wrote:
Quote:

>> 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
>
Quote:

>> "Pavel A." <pavel_a@xxxxxx> wrote in message
>> news:ejUqXvqsJHA.1208@xxxxxx
Quote:

>>> 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
>>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Copy files with folders PowerShell
BUG in Vista's zip folders: you can't copy files to a protected fo Vista General
BUG in Vista's zip folders: you can copy files in a protected loca Vista General
copy data files & folders to cd-rw Vista General
copy files in folders to a single folder PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46