Advertisement

Results for "Category: Files/ File Controls/ Input/ Output"

4_2005-2006 #153470
Compressed File Viewer

Stripped code from Dana Seaman's FolderView project. I stripped the project so that the result was only the code that enumerated compressed files. With this code you can view the contents of compressed files (zip, cab, rar, and ace). Note that this code does not compress or uncompress files, it simply enumerates the contents of the compressed files. Also works with shared files over a network. Dana 's original code is at: http://www.planet-source-code.com/xq/ASP/txtCodeId.23292/lngWId.1/qx/vb/scripts/ShowCode.htm All of the code here is Dana's except for the minor stuff like the "Dump to Text File" subroutine and the browsing function. You will notice that there are alot of variables that have been commented out. Those are just the byproducts of the original and bigger project. They were not needed for the compressed file enumeration but i left them in the code. I want to personally thank Dana for such good work.

4_2005-2006 #153472
Get File Sizes of Large Files

Gets the correct value for file sizes when the file is large (> ~2.1GB). Basically the file size function included in VB will give a wrong value when used on large files. The traditional way of getting the file size via API will also not work as detailed in the MS article http://support.microsoft.com/default.aspx?scid=kb;en-us;185476. After a bit of research I ended up tweaking the API function to calculate the proper file size. To see the differences, browse to a large file. Let me know if there are any bugs or suggestions to improve performance.

4_2005-2006 #153529
Recurse Subdirectories

Does anything you want to files in a directory and its subdirectories. For example, if you would like to add MP3's in a directory to a playlist in your MP3 player program, this would be handy for adding all of the files including those residing in subdirectories of that directory.

4_2005-2006 #153539
Mass Renamer (resubmit)

A program that batch renames files in a folder, based on Adobe Photoshop's batch renaming system.

4_2005-2006 #153552
Advanced Directory List

This gives you the Windows 95+ directory listing with My Documents, Desktop, etc. Two projects are included in this zip, one that has the project as an executable, one that has it as an ActiveX usercontrol. Simple code, lots of comments. Please leave feedback and vote!

4_2005-2006 #153582
Wait Time

Simulates wait time (time unit is one loop iteration) of a queue much like a line at a bank. Uses a Que Class, Server List Class, Server Class, Timer Class and a driver (Simulate.cpp)

4_2005-2006 #153641
CreateDirectoryStruct

Creates all non-existing folders in a path. Local or network UNC path.

4_2005-2006 #153645
Get the UNC Path

Networked drives. They're an administrative nightmare. In fact, the average user changes his networked drive letters more often than his underwear. But you can solve this problem of binding an application to a particular drive by using a Universal Naming Convention (UNC) path. This still references a network area, but doesn’t tie it to any one drive letter. And you can retrieve and check the UNC of a particular path in code using this neat little function. To use it, simply call GetUNCPath, passing it your drive letter along with a pre-declared empty string. If a problem occurs, the relevant number is passed back with the function. These can be matched with the possible return code constants. However if everything goes swimmingly, the function returns a zero (a constant value of NO_ERROR) and places the UNC path into the ByRef-passed variable. This code works by making a call to the WNetGetConnection function in MPR.DLL. It's essentially a neat wrapper for a regular API call.

4_2005-2006 #153679
Capturing the Extra Mouse Button Events

This program will demonstrate how to capture the extra mouse buttons such as the mouse wheel and x buttons (the buttons on the side of the mouse). Mouse Hooking is employed so these the events can be captured independantly of the controls.

4_2005-2006 #153689
How To Write To a INI File

This VERY Simple 5 Line Code Writes To a INI File! Enjoy!

4_2005-2006 #153692
Create a Internet Shorcut on Anyone's Computer

This code will create an internet shortcut on someone's computer. All you have to do it call it with a path and hyperlink!

4_2005-2006 #153693
Using the Printer Object 3 Part Laser Checks

This module will show how to use the printer object programmatically, in this case to print 3 part laser checks but anyone can use this on a laser printer with plain paper. I think it is about compact as it can be there are some variables that are not used yet. Notes on their purpose are documented. This shows how to use Printer.TextHeight and Printer.TextWidth for something useful. Please rate my code if you find it useful. ;)

4_2005-2006 #153699
Fax Server for 2000/NT

With a small bit of coding, you can modify this app to suit your office server environment as a fully function FAX SERVER. You MUST be running WINDOWS 2000 / WINDOWS NT, as these are the only two OS's that have the FAX SERVER Object.

4_2005-2006 #153710
Write Resource To File - Fast!

This is a fast way to write a resource to a file. UPDATE: You can find an example to this code here.

4_2005-2006 #153725
REAL professional About boxes

A little use of inspiration for a magnificent effect...

4_2005-2006 #153728
Get a Temp File Name

Need to create a temporary file for whatever? Include this bas module in your project and with one line of code the file will be created and the name returned to your program. Sample project included.

4_2005-2006 #153731
Common Dialog Template

Common Dialog Template. This small project explores the use of the Show methods of the Common Dialog. Want to know if the user entered an unexpected extention? Want the dialog to return a file name that does or does not exist? I have included most of the constants and properties associated with each method; not so much to show how they are use, but as a reminder of what is there. Try different things and see what happens. The open and save methods seem to have the most options and therefore the most complexity. So have fun and see if this works with that....

4_2005-2006 #153743
FileSystem module

BAS Module that handle several FileSystemObject methods using Windows API calls. Several new functions were added. This module will make file/folders operations a breeze.

4_2005-2006 #153768
DirectoryTreeView (Updated 8/3/03)

This is a simple 'Browse for Folder' style TreeView. Loads all Logical Drives. Does not load sub directories until the user expands the parent directory so it loads quickly. Supports showing of the files and their associated icon. **Update (8/2/03) ** Looks a little more like the "Browse for folder Treeview". The root is the users desktop folder. Improved properties. Only applicable properties are accessable. ** Update (8/3/03) ** Inclcudes an Example Application simulating a browse for folder dialog. Added method to Create a new Folder. Once the new folder is created it is selected. Added a FindNode method that returns a specific node based on the nodes fullpath. Added different icons depending on the drive type. Speed improved.

4_2005-2006 #153769
VBAccelerator IconMenu

I converted the original C# code for the IconMenu(http://www.vbaccelerator.com/home/index.asp) to VB.NET. The only Changes that I made to the actual code is that I added a property that allows you to select the Menu style you want, Classic Or XP Style. Everywhere I go that offers source code and it's in C# people are always asking for the VB.NET port of it, so Here's the VB.NET port of VBAccelerator's IconMenu

Languages
Top Categories
Global Discovery