Pacific Database

Home | Contact | FAQs | View Cart

A world of information at your fingertips

MVP Centre

Welcome to the MVP Centre. This page is the portal to a wealth of information about Microsoft Access.

File & Path functions

You are free to copy and use any of the samples supplied on this website for use in your own projects, provided that all copyright notices remain intact as part of the code. You may not publish the code to any website or other medium without the express written permission of the copyright holder. Each sample is provided on an "as is" basis. No warranty is expressed or implied, and no support is offered.

Working with INI files Functions for working with INI files.
Open & print any file Function for opening/printing any file, without needing to know it's executable.
FileExists Functions for determining if a file exists. 
UNC path Function for determining the UNC path to a file, from a mapped path.
List files in folder Function for listing the files in a folder.
GetFormattedFileSize Return a properly formatted filesize (in kB, MB, and so on), from its byte size.
StripPath2Root Strip a path to its root.
StripPath2Filename Strip a path, leaving only its filename.
GetLongPath Convert a short filename to a long filename.
GetShortPath Convert a long filename to a short filename.
GetCompactPath Truncate a path to fit a given character width, replacing the path tokens with ellipses.
Move & copy files Functions for moving & copying files using the standard Windows dialogs.
StoreFile2Table Code to store a binary file inside a Jet table.
Log2File Function to log an event in a file.