![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
File API Routines Updated Wednesday April 11, 2001 |
|
Category
|
Topic
|
Attributes vb6 vb5 vb4-32 |
Changing File and/or Folder Attributes
Recursively ![]() Recursive file searching providing the ability to reset file or folder attributes. March 25.2001 Searching and Obtaining File Property
Information |
|
|
Combine vb6 vb5 vb4-32 |
Combining an Image and Text
into a Single File Simple code by Larry Serflaten to combine a text and image into a single file. May 07.2000 Combining Multiple Elements into a Single File |
|
|
Common Dialog API vb6 vb5 vb4-32 |
File Open
Dialog Fully commented code to call the Win32 FileOpen Common Dialog using API File Save Dialog |
|
|
Copying vb6 vb5 vb4-32 |
How to Copy Files En-mass
to a New Folder Using the CopyFile API Pass a source and target folder and a filespec, and have this routine do the copying. Will create the destination folder if it doesn't exist. Sept4.97 Using CopyFile as a File Backup Mechanism Using CopyFileEx and Callback
as a File Backup Mechanism |
|
|
Directories vb6 vb5 vb4-32 |
An API 'FolderExists'
Routine Using FindFirstFile to determine if a specified folder exists. Oct 20.99 How to Create Nested Directories |
|
|
Disk Info vb6 vb5 vb4-32 |
Determining Free
Disk Space In Win95 The code to determine clusters, sectors, used and free space on a release version of Win95 (pre-OSR/2). Determining Free Disk Space on a
Fat32 Drive Determining if a Floppy Drive is Ready How to Enumerate the Available System
Drives How to Determine if a Specific Drive
Exists How to Obtain a System's CD-ROM Drive
Information How to Retrieve Drive Information Using
GetDiskFreeSpace and GetDiskFreeSpaceEx Using GetDiskFreeSpaceEx for
Disk Information on 32-bit Windows |
|
|
Drag & Drop vb6 vb5 vb4-32 |
Implementing File Drag
& Drop in a Visual Basic Project APIs to turn a listbox into a drag-drop receptacle. |
|
|
Drives vb6 vb5 vb4-32 |
An API 'DriveExists'
Routine Using GetLogicalDriveStrings to determine if a specified drive exists. Oct 20.99 Determining if a Floppy Drive is Ready Four wrapper routines that each determine if a removable drive is ready. |
|
|
Extract vb6 vb5 vb4-32 |
Obtaining the Filename from a Full Path
using FindFirstFile Small function returning the filename alone from a full path and filename. Feb 11.2001
|
|
|
File Associations vb6 vb5 vb4-32 |
Creating a Visual
Basic File Association Now your application will launch whenever its associated file is clicked in Explorer. June 29.98 Determining the Name of the
Executable Associated with a Specific File Obtaining the Path and Filename of the
Default Browser Starting Specified URLs in Separate Instances
of the Default Browser |
|
|
File/Date Routines vb6 vb5 vb4-32 |
Obtaining and Changing
a File's Created, Accessed and Modified Dates Once the debug code provided is removed, you'll be left with a half-dozen line routine to retrieve and set/reset a file's Created, Last Accessed or Last Modified dates. |
|
|
File Searching vb6 vb5 vb4-32 |
Performance Comparison
- FSO vs API Herein lies the truth - the FileSystemObject and API compared for file searching Apr 12.2000 Performing Recursive Searches Using FindFirst and
SearchTreeForFile Retrieving Internet Favourites Information Saving a Recursive Search of All Drives to Disk Saving a Recursive Search of All Drives to
Disk, Advanced Searching a Drive Using SearchTreeForFile Searching and Obtaining File Property
Information |
|
|
FindFirst - FindNext Change vb6 vb5 vb4-32 |
Creating a Watched
Folder with FindFirst/NextChange Notifications Monitor when the contents of a folder or subfolder have changed.
|
|
|
FindFirst - FindNext File vb6 vb5 vb4-32 |
An API 'FileExists'
Routine For the API purists, the popular FileExists wrapper via API. June 17.98 An API 'FolderExists' Routine Changing File and/or Folder Attributes Recursively Enumerating Folders using FindFirstFile and
FindNextFile API Enumerating Folders using FindFirstFile
and FindNextFile API, Advanced Obtaining a Directory File Count Using
FindFirstFile and FindNextFile Obtaining the Filename from a Full Path using FindFirstFile Performance Comparison - FSO vs API Performing Recursive Searches Using FindFirst and
SearchTreeForFile Retrieving Internet Favourites Information Saving a Recursive Search of All Drives to Disk Saving a Recursive Search of All/Select
Drives to Disk, Advanced Searching and Obtaining File Property
Information Using CopyFile as a File Backup Mechanism Using CopyFileEx and Callback
as a File Backup Mechanism |
|
|
FindFirst - FindNext URL vb6 vb5 vb4-32 |
Deleting the Internet
Cache Using DeleteUrlCacheEntry to empty the internet cache programmatically. Dec 06.99 Retrieving the Internet Cache with
FindFirst/NextUrlCacheEntry |
|
|
FTP vb6 vb5 vb4-32 |
FTP: Connecting
To and Retrieving FTP File Listings Using the FTP APIs to connect to a site and retrieve its file listing. Dec 17.99 FTP: Downloading Files via FTP FTP: Downloading Files Using
the FTP Download Dialog |
|
|
INI Files vb6 vb5 vb4-32 vb4-16 vb3 |
Create the
"Kidz Quiz" project Code to create a child's quiz application, easily extended to cover adults. Retrieving Internet Favourites Information Using INI Files to Save Application Data - The
Basics Using INI Files to Save Application Data -
Saving Entire Sections |
|
|
Paths vb6 vb5 vb4-32 |
Shell Path Routines: File/Folder/Drive Exists
![]() Tests the validity of the file and path on the local file system or on a remote drive that has been mounted to a drive letter. Shell Path Routines: IsDirectoryEmpty
Shell Path Routines: IsPathAFile Shell Path Routines: IsPathAFolder Shell Path Routines: IsPathARoot Shell Path Routines: IsPathLFN Shell Path Routines: IsPathLocalPath Shell Path Routines: IsPathNetPath Shell Path Routines: IsPathRelative Shell Path Routines: IsUNCPathAShare
Shell Path Routines: IsUNCPathAServer Shell Path Routines: IsUNCPathValid Shell Path Routines: IsPathAURL |
|
|
Temporary Files vb6 vb5 vb4-32 |
Creating Temporary
Files Using GetTempFileName Use Windows' built-in functions to create working files as needed. Aug 02.98 |
|
|
Copyright ©1996-2001 ebirch ltd/VBnet and Randy Birch. All Rights Reserved. Terms of Use |