Home | Download | Discussion | Help | Site Map | New Posts | Sign in

Latest Site News

MTS Movie Night - posted on 15th Jul 2017 at 7:21 PM
Replies: 0 (Who?), Viewed: 360 times.
Test Subject
Original Poster
#1 Old 14th Jul 2017 at 5:13 AM Last edited by KTrain : 16th Jul 2017 at 3:22 AM. Reason: Update
Default XML File Index - Python Program for File Retrieval
Have you ever wanted to find one or ten file locations in the XML index at once?
Do you lack the many minutes required to do this?

If you answered yes or no to any of these questions, I have the answer you've been searching for:
KTrain's XML File Retrieval

NEW: v1.1 adds user-friendly interface

I wrote this using Python version 3.5, other versions may work but I have not tested any other version. Python 3.5 is guaranteed to work.
- Python v3.5 needs to be added to the path also in order for this to work.
- Link to download Python 3.5: https://www.python.org/downloads/release/python-353/

Unzip File
Either: copy XML Index File to the same directory as the program files OR place contents of zip file in the same directory as XML File Index
- double click run.bat
- type search phrase
- type column number (1-5)
- type setting number: 1, 2, or 3
- 1: Creates new index filtered by search term and column number
- 2: Copies files to specified path without creating new index
- 3: Copies files to specified path and creates new index in the directory of the program and in the specified path
- type neat columns setting (if applicable)
- type destination path (if applicable) ~~ The path must be in double quotes!! (sorry, working on this) & It can't end with a backslash. \ Both of these will break the python script.
and BOOM!: Convenient list of XML files matching your search phrase

Pull up to 100 lists with this program: It generates a random number in the file name so file names will never conflict. (Sorry, this could get confusing for you. Let me know if there is a better way to avoid file name conflicts without creating more index files)

Reply with problems, I will fix the program as needed.
- Just send me a screenshot of the error and I will do my best to fix it.
Also, I will be consistently improving the program as I use it more and naturally get annoying with the amount of file handling...

I'm sure someone has done this before but I haven't found one and I conveniently know python.

v1.0 - base program ; creates filtered index
v1.1 - program is much more user friendly ; prompts for each parameter ; 2 more settings for program
v1.1.1 - fixed errors with neat columns ; added more exception handling

p.s. Also available here: https://www.dropbox.com/s/313jhvmew...v1-1-1.zip?dl=0
Download - please read all instructions before downloading any files!
File Type: zip KTrainsXMLRetriever_v1-1-1.zip (3.1 KB, 3 downloads) - View custom content
Description: Read Above Instructions First!
Back to top