Copy files with directory structure?
Moderators: white, Hacker, petermad, Stefan2
-
- Junior Member
- Posts: 13
- Joined: 2006-03-01, 15:46 UTC
Copy files with directory structure?
Hi all.
If I do a selective search (alt-f7) for files, and get a result list, I'd like to then copy those files to a destination (and here's the tricky bit) while including their directory structure (but of course not any files in the same directories that didn't match my search criteria).
Is this possible?
Thanks!
If I do a selective search (alt-f7) for files, and get a result list, I'd like to then copy those files to a destination (and here's the tricky bit) while including their directory structure (but of course not any files in the same directories that didn't match my search criteria).
Is this possible?
Thanks!
Try to use packer plugin TreeCopy. You will need to select files, press Alt+F5, select TreeCopy and click OK. It will copy files (not pack) keeping structure.
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
I use thisOr this
Button: wrote:Command: %ProgramFiles%\AutoHotkey\AutoHotkey.exe "%ProgramFiles%\AutoHotkey\Scripts\TC_ClipCopySelectedPreservePath.ahk"
Parameters: "%T"
Code: Select all
trgPath=%1%
PostMessage, 0x433, 2018, 0x0,, A
ClipWait
Loop, Parse, ClipBoard, `r`n
{
SplitPath, A_LoopField, aFile, aDir
if( SubStr(aDir,2,2) == ":" )
{
FileCreateDir, % trgPath SubStr(aDir, 4)
FileCopy, %A_LoopField%, % trgPath SubStr(aDir, 4)
}
}
Button: wrote:Command: %ProgramFiles%\AutoHotkey\AutoHotkey.exe "%ProgramFiles%\AutoHotkey\Scripts\TC_CopySelectedPreservePath.ahk"
Parameters: "%T" "%L"
Code: Select all
trgPath=%1%
Loop, Read, %2%
{
SplitPath, A_LoopReadLine, aFile, aDir
if( SubStr(aDir,2,2) == ":" )
{
FileCreateDir, % trgPath SubStr(aDir, 4)
FileCopy, %A_LoopReadLine%, % trgPath SubStr(aDir, 4)
}
}
Me too, but I think you're right. I forgot exact plugin's name.Hacker wrote:Never tried, but IIRC TreeCopyPlus should be better.MVV wrote:Try to use packer plugin TreeCopy.
TreeCopyPlus
Re: Copy files with directory structure?
You can use TCBL to process all files and xcopy to create and copy file at once.salocorgan69 wrote:Hi all.
If I do a selective search (alt-f7) for files, and get a result list, I'd like to then copy those files to a destination (and here's the tricky bit) while including their directory structure (but of course not any files in the same directories that didn't match my search criteria).
Is this possible?
Thanks!
sample if you want to create a copy from disk C: to drive Z:
Select file to copy (even from feed to listbox panel) an click on button or hotkey ...
Code: Select all
program: <path to>\tcbl.exe
parameters: %L @xcopy /I $f Z:$p!
-
- Junior Member
- Posts: 13
- Joined: 2006-03-01, 15:46 UTC