Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/FAQ/General questions

How to move files from export package to a single location

Last updated on 28 December 2021

Admin

Overview

When exporting is used in M-Files admin, the export package folder has files scattered over several folders and certain files are hard to find. This small batch file will move files to a single location to help with moving the files to another system, for example. PDF files are used in this sample, but it can be any other file type too.

Solution

Create a .bat file with this content and run it from a command line: it will move certain files to a single location from an export package. Change paths to suit your package location and output folder:

pushd C:\temp\export
   for /r %%a in (*.pdf*) do (
       MOVE "%%a" "C:\temp\export\tmp\%%~nxa"
   )
popd

Still need help?

On this page