Advertisement

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

2002ASP #3710
EZ INI Module to read / write INI Files

Offers 6 ini functions that are extremely useful. Handy, because it has a "setup" function that specifies the filename and the number of characters you'ld like to retrieve (max) so that you don't have to re-specify them every time you write to your INI file (great if you only have one or two INI files per project). Someone else did a "complete INI module" that actually hard-code edited the ini file to find out the number of sections, and so on, but this one uses in-built features of GetPrivateProfileString. Have fun! Read_Ini -- Returns a string with the appropriate INI key in it Write_Ini -- Writes to a specific ini key Read_Sections -- Returns a Chr(0) delimited string containing all the [Sections] of the INI file Read_Keys -- Same as above, but returns all the keys=values under the appropriate section Delete_Key and Delete_Section do just what they say =) Note: vbCrLf's are turned into a funky string because I noticed when writing vbcrlf's to ini files it has the tendency to screw up and actually place them on separate lines so you can't retrieve the whole thing again. The funky string is recognized by this module when you read the values in again, and converts em back to vbCrLf

2002ASP #3719
File Type Generator--(File Associations)

The purpose of this program is to create file associations with programs and file types on your computer. You can select from several options, but of course, the most important ones being what program to open the file with and what program to print the file with. Take a look through the code and feel free to modify it and use it in your install program or setup program to creat file types.

2002ASP #3750
INI Edit v1.1

INIEdit v1.1 is a windows INI Editor. it loads an INI file into a visual interface, allowing you to add and delete sections, keys and values. If you like this project, please vote! I am already working on 2.0!

2002ASP #3754
FolderView Control Active-X

FolderView (updated 18-August-2002). A Vb6 constituent control (piggy-backs Treeview). Enumerates drives, folders AND optional files with user specified FileFilter property (example: *.zip;*.rar;*.ace). Great for making Explorer, WinZip, Archiver clones. Supports tiled background image (wallpaper), optional drag-drop. Uses API (sorry, no Slow DIR or FSO code here!). Expands on demand for speed. Plus signs are added when a child folder OR user-specified file is detected. Demo uses Listview (with column sorting) to show files. Zip enumeration with no 3rd party Dll needed. Check out other goodies such as CVC function to handle 64-bit NTFS file sizes, rip column header strings direct from Windows Dll's so they appear in YOUR language, get FileTypes (including those in Zip's!) direct from registry (very fast with dupe check), verbose Zip Method function conforms to PkZip 2.04g specs, extended Attribute Formatter, Size Formatter that handles bytes Kb Mb Gb Tb Pb Eb Zb Yb, and recursive FolderSize function. Tested on WinME (English) & Win2000 (Portuguese). Because Dll are no longer allowed in uploads you will need to build as follows: 1. Load TvBackDll.Vbp and compile DLL.

2002ASP #3776
A Beginner method to check whether a file exists

A Beginner method to check whether the file exists or not. Simple and should able to run on different Window OS.

2002ASP #3781
Multiple File Delete

Deletes Multiple Files at one time. It uses Drag and Drop to put the files into a listbox. If you have any questions about this program just email me at ourgroup@sprint.ca . I'd appreciate any feedback and please take the time to vote if you find this of any use. Thank You Very Much

2002ASP #3819
SplitMaster

Splits large files into smaller ones.

2002ASP #3825
Easy way to properly save and load a treeview-structure

Shows the - in my opinion - easiest way how to properly save and load a complete treeview structure from a plain text-file. NOTE : The code uses 2 functions - GetBefore and GetAfter - which I got from this Site, but I cannot remember the name of the author. If the person who wrote these functions incidentally gets this code, please leave your name in the comments, mentioning that these are YOUR, NOT MINE.

2002ASP #3829
App.Path Thing

Correct Reference to Files in App.Path. For Newbies and for all who get Errors and don't know why. If you think this deserves a Vote, then do so, if not, then don't. I just wanted to explain a common error source !

2002ASP #3834
Using LSet to make reading files easier

Have you ever needed to read a fixed length text file in Visual Basic? I have written quite a lot of applications where I will receive a fixed length text file from the mainframe. Tired of using the Left$, Right$ and Mid$ functions to parse each line for the individual elements of the line? Then read on. Oh, and thanks to Rockford Lhotka's, book on Visual Basic 6 Business Objects for giving me this idea.

2002ASP #3835
FileReady Function

Here is a useful function I created to solve a problem I was having in processing files for one of my applications. This function works better than trying to use the VB 'OPEN' command because it will always return the correct state of the file (even on a file that is being FTP'd at the time of the test.) See remarks in the FileReady function on it's use, as well as a sample at the end of this note.

2002ASP #3842
A FileExists Function

Checks to see if a file exists.

2002ASP #3858
VB Printing Tutorial

This may be some help if you want to print with VB. It does not cover everything to do with printing but is a good start.(...No PrintForm...) Using X,Y, Coordinates.

2002ASP #3895
Add and .ini or any file to an executable

Want to put an .ini file INSIDE your .exe file? Yep...it's another file attachment sample. I've commented it heavily for newbies. There are only 2 subs, very short and to the point. It should help get you off the ground if you've never done this before.

2002ASP #3908
Fastest FileLoading Techniquie for simple VB

In All the other methods I've tried, I run into a barrier(around 170K+) where loading a file suddenly becomes very slow. I've tried many methods found here and in books, and none have proven to work as well as I was looking for. After a long search I ended up spending some off-time figuring a way out myself. This is what I came up with.(speed increases from 20 seconds@170k to .4 seconds@170k)

2002ASP #3913
Count Lines in a Text File

This code will count all of the lines in a text File. This code will work on any sized file, and is quicker than using LineInput or the FSO.

2002ASP #3918
Create Windows Cabinet Files

Lets you create A windows cabinet file (.cab) containing any file(s) of YOUR choice. Since a cabinet file is something windows uses. Once you make it, you can give it to anyone and they can open/extract it without special files. PLEASE vote and/or leave feedback/comments on what you think.

2002ASP #3934
Path manipulation

There are many methods you can use to return certain parts of a fully qualified path to a file. Here is the SHORTEST and FASTEST way to 1) return just the path, 2) return just the filename, and 3) change the extension of a filename. The code is so short that it is probably faster to keep it inline than to create additional functions. (I've done so here to better illustrate the parameters.

2002ASP #3950
Ariel file icon extractor

This project demonstrates how to extract large and small icons associated with files into an imagelist and displaying them in a listview with the filenames. The SHGetFileInfo function of the shell32.dll library is used, which makes the job much easier than before. The ImageList_Draw function in comctl32.dll is used to draw the icon in a picture box,from where it is placed into the image list. Other submissions on PSC do an OK job on large icons, but the small icons are a mess. Not here! Credits to Peter Meier for his DelRecent posting.

2002ASP #3961
_Binary encoder...V2

File and binary encoder. Doesn't work that well with exe's but zip's and pictures work fine.

Languages
Top Categories
Global Discovery