Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 10-17-2008, 05:45 AM
hmm
Newsgroup Contributor
 
Posts: n/a
Use Windows Explorer to copy a file/folder with its path structure

Suppose I want to copy a file or folder from C:\ to D:\, but with the same
folder path structure. For example, if I copy C:\MyFolder\MyFile.doc to D:\,
it should save to D:\MyFolder\MyFile.doc, creating MyFolder in D: if
necessary. If I copy C:\MyFolder\Songs\ to D:\, it should copy all files in
Songs\ to D:\MyFolder\Songs\, creating folders as needed. Perhaps the xcopy
command do it, but I prefer to drag/drop using Explorer.

How would I do it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 10-17-2008, 05:45 AM
  #2 (permalink)  
Old 10-17-2008, 05:45 AM
Pegasus \(MVP\)
Newsgroup Contributor
 
Posts: n/a
Re: Use Windows Explorer to copy a file/folder with its path structure


"hmm" <hmm@discussions.microsoft.com> wrote in message
news:E7CB4549-9E15-4A8C-BDB2-4A3E352E3899@microsoft.com...
> Suppose I want to copy a file or folder from C:\ to D:\, but with the same
> folder path structure. For example, if I copy C:\MyFolder\MyFile.doc to
> D:\,
> it should save to D:\MyFolder\MyFile.doc, creating MyFolder in D: if
> necessary. If I copy C:\MyFolder\Songs\ to D:\, it should copy all files
> in
> Songs\ to D:\MyFolder\Songs\, creating folders as needed. Perhaps the
> xcopy
> command do it, but I prefer to drag/drop using Explorer.
>
> How would I do it?


Drag c:\MyFolder to D:\.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 10-17-2008, 05:45 AM
hmm
Newsgroup Contributor
 
Posts: n/a
Re: Use Windows Explorer to copy a file/folder with its path structure

Thanks Pegasus.

The action you propose will copy ALL files in MyFolder to D:\MyFolder. The
question is if only want to move a SINGLE FILE to D:, while retaining the
source file's path on C:.

"Pegasus (MVP)" wrote:

>
> "hmm" <hmm@discussions.microsoft.com> wrote in message
> news:E7CB4549-9E15-4A8C-BDB2-4A3E352E3899@microsoft.com...
> > Suppose I want to copy a file or folder from C:\ to D:\, but with the same
> > folder path structure. For example, if I copy C:\MyFolder\MyFile.doc to
> > D:\,
> > it should save to D:\MyFolder\MyFile.doc, creating MyFolder in D: if
> > necessary. If I copy C:\MyFolder\Songs\ to D:\, it should copy all files
> > in
> > Songs\ to D:\MyFolder\Songs\, creating folders as needed. Perhaps the
> > xcopy
> > command do it, but I prefer to drag/drop using Explorer.
> >
> > How would I do it?

>
> Drag c:\MyFolder to D:\.
>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 10-17-2008, 05:45 AM
Bob I
Newsgroup Contributor
 
Posts: n/a
Re: Use Windows Explorer to copy a file/folder with its path structure

With Windows Explorer, you can't do as you propose. Xcopy with the /T /E
switches will.

hmm wrote:
> Thanks Pegasus.
>
> The action you propose will copy ALL files in MyFolder to D:\MyFolder. The
> question is if only want to move a SINGLE FILE to D:, while retaining the
> source file's path on C:.
>
> "Pegasus (MVP)" wrote:
>
>
>>"hmm" <hmm@discussions.microsoft.com> wrote in message
>>news:E7CB4549-9E15-4A8C-BDB2-4A3E352E3899@microsoft.com...
>>
>>>Suppose I want to copy a file or folder from C:\ to D:\, but with the same
>>>folder path structure. For example, if I copy C:\MyFolder\MyFile.doc to
>>>D:\,
>>>it should save to D:\MyFolder\MyFile.doc, creating MyFolder in D: if
>>>necessary. If I copy C:\MyFolder\Songs\ to D:\, it should copy all files
>>>in
>>>Songs\ to D:\MyFolder\Songs\, creating folders as needed. Perhaps the
>>>xcopy
>>>command do it, but I prefer to drag/drop using Explorer.
>>>
>>>How would I do it?

>>
>>Drag c:\MyFolder to D:\.
>>
>>
>>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 10-17-2008, 05:46 AM
Pegasus \(MVP\)
Newsgroup Contributor
 
Posts: n/a
Re: Use Windows Explorer to copy a file/folder with its path structure

The strength of Explorer is its simplicity of operation. Its weakness is the
lack of flexibility. You need a command such as the one below to copy
individual files:

xcopy /s /y /c "c:\MyFolder\My File\SomeFile.doc" "d:\MyFolder\MyFile\"

It will create the required folders and subfolders on the fly. Note the
switches and the trailing backslash.


"hmm" <hmm@discussions.microsoft.com> wrote in message
news:E3841290-3BB5-452E-95F1-DBDFAD51ADBE@microsoft.com...
> Thanks Pegasus.
>
> The action you propose will copy ALL files in MyFolder to D:\MyFolder.
> The
> question is if only want to move a SINGLE FILE to D:, while retaining the
> source file's path on C:.
>
> "Pegasus (MVP)" wrote:
>
>>
>> "hmm" <hmm@discussions.microsoft.com> wrote in message
>> news:E7CB4549-9E15-4A8C-BDB2-4A3E352E3899@microsoft.com...
>> > Suppose I want to copy a file or folder from C:\ to D:\, but with the
>> > same
>> > folder path structure. For example, if I copy C:\MyFolder\MyFile.doc
>> > to
>> > D:\,
>> > it should save to D:\MyFolder\MyFile.doc, creating MyFolder in D: if
>> > necessary. If I copy C:\MyFolder\Songs\ to D:\, it should copy all
>> > files
>> > in
>> > Songs\ to D:\MyFolder\Songs\, creating folders as needed. Perhaps the
>> > xcopy
>> > command do it, but I prefer to drag/drop using Explorer.
>> >
>> > How would I do it?

>>
>> Drag c:\MyFolder to D:\.
>>
>>
>>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I copy the folder structure? Frank Martin Windows XP 11 10-17-2008 03:57 AM
Re: explorer remember folder structure Chris Game Windows Vista 0 05-07-2008 03:30 AM
Copy Path of a File to the Clipboard in Windows Vista n o s p a m p l e a s e Windows Vista 1 10-10-2007 08:30 AM
Copy folder structure but not files SU Microsoft Office 2 04-26-2007 06:15 AM
Internet Explorer 7 hides custom icon file path in shortcuts can't copy paste it anymore JDJ Windows XP 3 01-04-2007 06:24 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 07:28 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0