Advanced Files & Folders
The standard VB file and folder functions are very limited. You can't send a file to the recycle bin, reliably check if a file exists, or list files and folders, or open a file as you would in explore
File Assocation
If your VB program creates or reads files, it is always useful for the user to be able to double click on a file in explorer, and for it to be automatically opened in your application. In fact, they d
File Extensions: Finding the default Icon
This article demonstrates how you can display the default icon for a given file extension. This is particularly useful for making file sharing and FTP client software etc. I will show you how to take a file name and use it to find and draw its icon in a picture box.
Files and Folders
Knowing how to use Files and Folders are essential. This tutorial covers almost everything you could want to know... copy, rename and delete files & folders, read, write, append files, read ini files
Getting System Folders Easily via API
Instead of using static paths like 'C:\WinNT\' in your programs
and making it not work on Windows 9x OS's, use the power of the
Win32 API to retrieve the important system paths! This article
explores a few alternative methods of retrieving some of the
core System folders in the win32 enviroment.
Retrieve & Identify System Drives
This handy class retrieves, identifies and breaks down system drives by category. The class is extremely easy to use - it has no methods, properties or events. It has collection. AllDrives collection lists all drives. LocalHardDrives collection lists local drives, NetworkDrives lists network drives and so on...
Retrieve Directory Security Info
Windows Security is difficult to do in Visual Basic. NTFS keeps
tabs of permissions and how the permissions are inherited (i.e.
you set permissions on c:\zzz and all the permissions for the
child folders are inherited from the parent folder) and this
info is only available via the Win API.