ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

Files 2 folder on steroids.

(1/2) > >>

magician62:
I am finding I have a regular task, that would benefit from an easier way.

I have a folder with a various number of PDF's

I need to create  TXT files for each PDF with the same filename, and inside the TXT file write the filename less the file type.

I then need to move the PDF and associated TXT file into a folder of the same name.

At present I am manually creating the text file and adding the content, then using Files 2 Folders to folderise all the TXT files and finally manually drop the PDF's into the corresponding folder.

Preferably the Util will be in AHK as I want to learn how it is working so I can extrapolate for the future.

TIA.

paradisusvic:
Hello & good day!

I need to create  TXT files for each PDF with the same filename, and inside the TXT file write the filename less the file type.
-magician62 (July 13, 2024, 06:04 AM)
--- End quote ---

Which PDF2TXT tool are you using for the conversion? If possible, show the actual command you are using :)

(Some tools have OCR settings, etc.)

magician62:
I can see the confusion, I am not converting the PDF. I just need a text file with thw same name.

So for

'my.pdf'

I need an empty txt file

'my.txt'

I then want the text of 'my' inside the txt file.

So we get 'my.txt' when opened the contets is teh line of text 'my'

paradisusvic:
Got it, coding a small CLI as an initial release exactly by your parameters @ https://github.com/paradisusis/MagiFold

(This one is a prime candidate to be expanded into a GUI with configurable options :Thmbsup:)

paradisusvic:
As of now, the main functionality is complete and has been pushed to GitHub

The program takes a cautious approach by processing the top directory only. It uses “.” to indicate the current directory for the MagiFold.exe executable.

Navigation

[0] Message Index

[#] Next page

Go to full version