by MrBobo (49 Submissions)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
More examples for Beginners by MrBobo.
This little demo demostrates the use of Drive boxes, Dir boxes and Filelistboxes. To give the example some purpose it allows you to safely bulk change the extensions of files in a selected directory. To do this safely you need to quickly parse filepaths and include error handling to avoid overwriting. The demo includes an example of a 'Desktop' and 'Up one level' button in its' browse function, get special folders, enumerating all filetypes from the registry and a simple auto-complete function for comboboxes. Includes an interesting function - Safesave - which appends a number to a filename if the file is found to already exist.
Upload