How to automate copying bulk pdf files from one Share point folder to another in Windows - 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.

Related

Is there any way to filter folders/directories by name in windows?

Is there any way to filter folders by Name in Windows?
Let's suppose I have 100 or 200 folders with different names in the directory.
Now I have a list of specific folder names that are in the folders and I want to filter/move those listed name folders to another directory.
In an easy word I want to copy/move listed folder names to another folder/directory.
How can I do that with any software in bulk? I am searching for it but I can't find any software to do this task for me. I can manually move the folder one by one but it's so time-consuming when I have hundreds of folders.
I am currently using XCOPY GUI software but in this software, I have to first filter the path exception folder before I get my final result.
Example:
Main Dir contains
1st folder
2nd folder
3rd folder
4th folder
and so on ...
I have a list of names in my notepad which folders I want to copy or move.
3rd folder,
4th folder
Final Dir:
3rd folder
4th folder
How can I do that in bilk using any software or any way?
Thanks
If you're using Java, you can use methods in the Files class, or instances of File.
For example, Files.move() might help. If you're using an IDE, type stuff that might be right, like Files.move(), and suggestions will pop up that might lead you down the right path. Also, you can look at the documentation. I am currently scraping the web and creating and filing files, so I know about this somewhat, although not specifically about moving folders rather than files. I'm using Java on a MacBook, so that might influence how relevant my suggestions are to you depending on what you're using.
Basically, look at the documentation for your language. You hopefully won't need any external libraries since moving folders should be a basic task.

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

What is a good way to manage the files your application creates and uses

I am trying to develop an application which has to store the paths of different folders . I thought I will create a file that stores these paths.
My problem is I don't know a proper way to manage this file like where I should save this file. I looked for information on managing files our application creates but couldn't find it. Please help me
I think you can keep file paths in a txt file as absolute path of them.
You can pick create a folder under documents or some other folder then write into your txt file.
I don't get what is so complex about it.

How to edit the contents of index.dat windows file

I need to be able edit the content of index.dat file programmatically (C:\Documents and Settings\Username\Cookies\index.dat). More precisely I need to modify it in order that index.dat for one user can be used for a different user name. Is there any documentation out there for this kind of binary file?
Pasco (http://www.foundstone.com/us/resources/proddesc/pasco.htm) is a free index.dat parser that comes with the source code.
Docs will be hard to come by - Microsoft has never publicly documented the structure of the the structure of this file. That said, you can find docs on the web such as the one mentioned above.
However, note that IE keeps close tabs on this file. The file is locked while IE is running (meaning, you can open/read it in some modes but not in others) and you can certainly not write to it.
One method that might still work is to boot-up in safe mode and then assign yourself administrator rights and then see if you can find the files to delete them.
The method I now use is to create a batch file to rename the subfolder below the folder containing the index.bat files and to then only copy the folders back to the original location that don't contain these files but the resultant batch files needs to be run from a separate windows account that has full administrator permissions.
The freeware code editor PSPad will allow you to view and to edit the contents of all of the index.dat files on your computer in hexadecimal form. This is done by replacing all of the digits in the first eight columns with zeros. This removes all of the information contained in the files.
It's a tedious process, requiring holding down the "0" (zero numeric key) as all of the edits are made, but anyone then accessing any of the index.dat files will get no information.
IE must be closed when doing this or you may receive an error message when attempting to save the modified file(s).

Resources