Copy PackagesLocalDirectory files

# 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:\CopyLabels\
# Copy en-US label files, retaining folder structure
xcopy K:\AosService\PackagesLocalDirectory\*.en-US.label.txt k:\CopyLabels /sy
# Copy all label files, retaining folder structure
xcopy K:\AosService\PackagesLocalDirectory\*.label.txt k:\CopyLabels /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:\CopyLabels\

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"

 

Search

About

DaxOnline.org is free platform that allows you to quickly store and reuse snippets, notes, articles related to Dynamics AX.

Authors are allowed to set their own AdSense units.
Join us.

Blog Tags