Have a suggestion?

Click here to suggest a blog item.

Newsletters Archive

Catch up with DonationCoder by browsing our past newsletters, which collect the most interesting discussions on our site: here.

Editorial Integrity

DonationCoder does not accept paid promotions. We have a strict policy of not accepting gifts of any kind in exchange for placing content in our blogs or newsletters, or on our forum. The content and recommendations you see on our site reflect our genuine personal interests and nothing more.


Latest News

July 2, 2024
Server Migrations Coming

  • Donationcoder server migration is slowly proceeding, expect some hiccups as we get all our ducks in a row..

July 19, 2022
Software Update

Jan 3, 2022
Event Results

May 13, 2020
Software Updates

Mar 24, 2020
Mini Newsletter

Dec 30, 2019
Software Updates

Jan 22, 2020
Software Updates

Jan 12, 2020
Newsletter

Jan 3, 2020
Event Results

Jan 2, 2020
Software Updates

Dec 30, 2019
Software Updates

April 27, 2019
Software Updates

Feb 26, 2019
Software Updates

Feb 23, 2019
Software Updates

Feb 14, 2019
Software Updates

Jan 6, 2019
Event Results

Dec 2, 2018
Software Updates

Nov 13, 2018
Software Releases

July 30, 2018
Software Updates

June 24, 2018
Software Updates

June 6, 2018
Software Updates

Apr 2, 2018
Fundraiser Celebration

Apr 2, 2018
Software Updates

Feb 24, 2018
Software Updates

Jan 14, 2018
Major Site News

Jan 10, 2018
Event Results

Latest Forum Posts

Our daily Blog

This page spotlights the most interesting posts collected from our forum every day.

You are viewing a specific blog item. Click here to return to the main blog page.

Coding Snack - Extract folder and file paths from specified folders

blog clipart
Dear Coders,
I'm a non-programmer with only basic scripting skills.

I want to mass-extract file names from a folder and write them to a text file. The "\" in the path should be converted to "<". An AutoHotkey script would be great because there is a chance that I might be able to modify it.

Steps:
1. Select folder from a menu
2. Extract folder paths and convert them to my desired format:
P:\Z_Systems\Favoriten yields the following:
P:<Z_Systems<Favoriten<folder 1\folder 1
P:<Z_Systems<Favoriten<some other folder\some other folder
Mind that there should be a backslash after the actual folder name followed by the last folder name.
It should issue a warning should one of the paths have more than 127 characters. I will put in that warning by myself later.
...
3. Write these files to a text file that is saved on the desktop.
... That's it.

It would be kind of nifty if I would be able to select between files and folders at the beginning (either one or the other should be extracted, but not both).
P:<Z_Systems<Favoriten<file 1.doc\file 1.doc

Thank you so much!

Click here to read more and download the utility written by dc member Skwire..



Share on Facebook