IBM Content Collector FS to P8 Archiving - filenet-p8

In my current project using IBM Content Collector 4.0.1 SP5 with IBM Filenet P8 Content Engine 5.2.1 I need to collect files from file system and add them to a certain P8's object store.
Report files are added into folders eight fixed folders and under them the structure grows dinamically over time with further nested folders following the form yyyy/mm:
I started from the FS to P8 Archiving (Replicate File System and Detect Duplicates).ctms task route example in order to have the replicated structure in my object store.
Let's focus on the P8 File Document in folder task and particularly on the File in Folder Options.
The problem is that the path created in my repository contains also the drive letter (e.g.: E:\Report\AMM_000001_00001\2017\05) whereas I would like to have only the folder structure replicated starting from the Report folder.
How can I achieve this?
Should I use regular expressions for this?

I managed to achieve the desired result using regular expressions in the "P8 File Document In Folder" task, like this:
Purpose: Get a folder path without a drive letter.
Regular expression: ^[^\\]*
Replacement string: $1
Sample text: C:\folder 1\folder 2
Sample result: \folder 1\folder 2
as described here.

Related

How to automate copying bulk pdf files from one Share point folder to another in Windows

I wonder if someone has ideas to my case.
I have a list of >200 pdf file names of documents that are saved in a share point folder and I need to copy them to another share point folder. I have looked at video clips of how to use Power Automate to copy/move files, which is very good when the file data type is used as the criteria for selecting the files. However, my list is in word and want to find a way of reading the file names, search them in the source folder and copy to the destination folder.
Any ideas?
You may consider to share the link to the 2nd SharePoint folder inside the 1st SharePoint folder to avoid copying at all?
That been said, you can load your word file into a list in Power Automate and then loop through the list (assuming your word doc has the complete path & filename line by line)
Some references:
https://learn.microsoft.com/en-us/power-automate/desktop-flows/how-to/extract-text-word-document
https://learn.microsoft.com/en-us/power-automate/desktop-flows/use-loops
The rest should be as in the video clips.

How to search a folder for a specific word on Mac

So I have a folder which has a bunch of files (source code) and other folders. I want to search this folder for a word, say, faceGroup, and get all the files that contain this word and also get locations of these files. How to perform this action effectively and efficiently (maybe using terminal or spotlight)?
You can use the 3rd party app EasyFind. It will search in files and folders and list where all matches occur. You can also narrow your search to a specific disk or folder. EasyFind is free and available from the app store.
You can use this command to search folder.
mdfind kind:folder "Huddl-Backend"

Windows - Virtually consolidating files from several directories into a single path

I have been searching for this for a while but no success yet. Not sure if I'm using the right terms...
I'm trying to programmatically automatize the use of an API (from a software called Pix4D) to which I need to pass a directory path as one of the parameters. This directory is supposed to contain all files that will be processed by the aforementioned API.
The problem is that the API only accepts a single path, while my business process will always organise the input files into several input folders (I tried, but I cannot change this).
I'm trying to find a way to create an extra folder that would contain some sort of reference to all the files organised in those input folders. Thus, when one opens that "virtual folder" path, he would see all files together. This would potentially allow me to use the path for the new folder as the input for the API.
So, suppose I have these files I want the API to process:
C:\proc\20170101\f1.jpg
C:\proc\20170101\f2.jpg
C:\proc\20170201\f1.jpg
C:\proc\20170201\f2.jpg
C:\proc\20170301\f1.jpg
C:\proc\20170301\f2.jpg
I would need a single path to a directory that virtually contains all those 6 jpg files.
Some constraints:
We don't want to duplicate files
The virtual path needs to be created via command line
It should work on a Windows machine
Yes, there might be files with same names in the input folders. We can work around this, if necessary
Open source/free solutions would be better
Any help is highly appreciated. Same goes to any different approach to the problem.
Thanks

Using custom file formats as Windows Explorer file systems

Are there any tutorials on how to load custom archive file formats as file systems in Windows Explorer, similar to CAB and ZIP files?
I tried searching for namespace extensions tutorials, but it appears to be a different thing.
See this project - Mini Shell Extension Framework.
Part 1
Part 2
Part 3
Most important for you is first part, from project description:
In order to show how to use the classes and to provide a sample of how
to create a shell extension, the code includes a small sample that can
open .vvv files. VVV files are just renamed .ini files that act as a
container. Most shell extensions are container views (for example, the
Windows .zip and .cab shell extensions).

How do I verify the .cssx file created with CSPack Azure SDK tool?

Once I use "Build->Publish->Create Service Package Only" to pack my Azure role I get two files. One is the .cscfg - a tiny XML file with service configuration. The other is the package itself which is in fact a ZIP archive with .cspkg extension.
The .cspkg file contains the .cssx file which grows larger and larger as I add stuff into my role. So I assume that the .cssx file contains all the contents of my role, binary files included. If I open it with a viewer - it doesn't contain any recognizable patterns, just some binary content.
I want to be sure that the package contains all the right stuff before I upload it to Windows Azure but since I can't analyze the .cssx file I can't do that. Is there a way to analyze the .cssx file to verify that it was assembled right?
Rename the [filename].cssx file to [filename].zip and use and open the file using your prefered archiving utility.
Before you can do this you need to follow some steps to disable encrypting the archive.
More detailed info here

Resources