Показать сообщение отдельно
Старый 06.03.2024, 22:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,477 / 846 (79) +++++++
Регистрация: 28.10.2006
a33ik: Copy PackagesLocalDirectory files
Источник: http://daxonline.org/1943-copy-packa...ory-files.html
==============

# Command line
# Copy XML files and retain the folder structure
xcopy K:\AosService\PackagesLocalDirectory\*.xml k:\CopyObjects /sy# Copy XML files and retain the folder structure. Excluding unnecessary files

xcopy K:\AosService\PackagesLocalDirectory\*.xml k:\CopyObjects /sy /exclude:exclude.txt
# exclude.txt:

\XppMetadata\
\bin\
\Descriptor\
Adaptor\



# Copy en-US label files to a single folder
for /R K:\AosService\PackagesLocalDirectory\ %f in (*.en-US.label.txt) do copy %f k:\CopyObjects2\
# Copy en-US label files, retaining folder structure
xcopy K:\AosService\PackagesLocalDirectory\*.en-US.label.txt k:\CopyObjects /sy# Power shell
# Copy en-US label files to a single folder

Get-ChildItem -Path "K:\AosService\PackagesLocalDirectory\*" -Include *.en-US.label.txt -Recurse | Copy-Item -Destination k:\CopyObjects\labels\

Then using your favorite file manager you can search within file contents, which should be faster than using standard label search or metadata search with code:"code string to find"
Explorer can search in the file content, just type following in the search text box: content:"code string to find"


Источник: http://daxonline.org/1943-copy-packa...ory-files.html