Advertisement

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

ASP_Volume2 #29667
File Search (UPDATE)

I recieved an e.mail from Randy Porosky asking if can update the Application so it would search for multiple Files and list the Search Name only, well, it now searches for multiple Files and adds the search name to a seperate listbox. You would expect the search to take double the time when adding another File to the SearchList, but with a litte recursive programming it only adds approx 0.6 seconds to the search time. So again, this Application will search for multiple Files on multiple Drives, Folders etc, VERY FAST, eg. On my system it took 3.5sec to search 1079 Folders for 1 File, because of the recursive programming it took 4.1sec to search 1079 Folders for 2 Files.

ASP_Volume2 #29674
PAK Control

With this code, you can merge multiples files (any file) in a one single file! It's fast and easy to understand.

ASP_Volume2 #29675
Call Logger

This is a program to record callers to a helpdesk. It uses a very good example of records, if you are looking for how to create records then this code is for you. Special thanks to Mark Robert Strange for his excellent flicker-free gradient scrolling credits screen that I've incorporated into my program, hope this is helpful. Enjoy ...

ASP_Volume2 #29697
Create a folder with one line of code no OCX's or other controls

Here you can make a new folder with just ONE line of code. You decide where you wanna place the folder(like 'c:\New Folder\Sub\'). You don't need any extra OCX's or other kind of controls so just take the code and enjoy it. The code is very useful to me and im sure it will be to you too. /Author

ASP_Volume2 #29737
Validate_Drive

Validates whether a given hard/floppy/network drive is valid

ASP_Volume2 #29738
Validate_File

Determines if a file exists Improved version--detects hidden files too!

ASP_Volume2 #29739
cmdFormatDrive

Format Floppy Disk using API:Here is the code on How to Format Floppy Disk using API. Note -- This code can format your Hard Disk as well, so you should be careful!!!!

ASP_Volume2 #29744
Launch file and associated program

How do I launch a file in its associated program? The Shell statement unfortunately only supports launching an EXE file directly. If you want to be able to launch, i.e. Microsoft Word by calling a .DOC file only, you can make your VB application launch the associated program with the document using the following method:

ASP_Volume2 #29748
Converting long file names

VB4's commands for dealing with file names (such as KILL, MKDIR, and FILECOPY) support long file names without programmer interaction. A number of the Win95 API functions will return only the short name, and you'll notice a number of short file name entries if you're digging through the registration database. Therefore, occasionally you'll need to convert a short file name into a long file name. This function lets you pass a long file name with no ill effects. The file must exist for the conversion to succeed. Because this routine uses Dir$ and "walks" the path name to do its work, it will not impress you with its speed:

ASP_Volume2 #29757
16 and 32 bit functions to create

16 AND 32 bit functions to read/write ini files--very useful!

ASP_Volume2 #29762
Win95DirectoryPrompt

Prompting the User for a Directory in Win95. Windows' common dialogs are great if you want the user to select a file, but what if you want them to select a directory? Call the following function, which relies on Win32's new SHBrowseForFolder function:

ASP_Volume2 #29778
FileThing (Explorer)

File Thing (simple file explorer) This is a small project I made, for just having a basic file-explorer. It looks a bit like the windows explorer does nothing than browsing and showing the files in a directory. It has no real function except for being a base implementation of a file explorer. But doubleclicking a file is working ! So all additional functions you need can be added. All functions are well documented. Feel free to modify this programm to your own needs.

ASP_Volume2 #29797
TreeView Export Routine

Exports a TreeView control (including ALL it's children) into a graphical representation with plain text.

ASP_Volume2 #29799
FileReader Classes

Two class modules that load any size flat file with delimiters (tab, comma, space, etc.) into memory. Once loaded, you can reference any cell that has been loaded... sort of like Excel.

ASP_Volume2 #29805
Drive Structure

Just a simple program which uses the FileSystemObject and Recursion to output a complete directory/file structure of your computer to a file. I was originally gonna use this as a sort of snooping thing a while ago, you could run it on someones computer, and then read the text file to see what they had on their computers. The text files come out quite large, but when zipped up they're usually only about 50k. Uses a good example of recursion.

ASP_Volume2 #29831
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.

ASP_Volume2 #29834
Binary string replacement

Opens any file in binary mode and replaces all instances of a specified string with another specified string.

ASP_Volume2 #29904
ArchivePro - Rename many files...

Simply and efficiently rename all the files of a directory. Select a directory, Choose what type of files to rename (All, Graphic, text), Enter a starting number, Select a number of 'padding' (zero's) and thats it!. Good example of simple error handling, Loop Structures, etc. Nothing too exciting, but it works on Windows 98 - XP. Mail me if you need more functionality.

ASP_Volume2 #29996
Using/Saving/Loading List boxes

This shows you how to load and save list boxes. It also shows you how to add and remove entrys. Its fully commented. Very good help for a beginner. If you like this code then please vote for me!

ASP_Volume2 #30008
File Renamer

An example of how to rename files using code (Very simple)

Languages
Top Categories
Global Discovery