Advertisement

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

C_Volume2 #71473
File I/O Functions

The codes included in zip file. Vote if you learn something,please.

C_Volume2 #71516
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.

C_Volume2 #71527
A FileExists Function

Checks to see if a file exists.

C_Volume2 #71546
How to open a file with one line of code!

You create a funtion that can open a file with just one line of code.

C_Volume2 #71547
File/Directory/Drive Exists (Updated)

This code returns a true/false if a specified drive/directory/pathname exists. This is a small, fast routine.

C_Volume2 #71548
GetShortFileName

A short pathname of the passed string containing a long pathname. 'For example it turns "C:\Windows\MY Long Path Name\My Long Name File.txt" into "c:\windows\mylong~1\mylong~1.txt" (The actual resulting pathname is determined by the short names that windows assigns to all files and directories). 'This is useful when you need to create a fail proof pathname (assuming the file exists and is accesible).

C_Volume2 #71556
RmDir

This Procedure Deletes all Files in Directory as well as all Sub Directories and Files

C_Volume2 #71572
FilesSearch

This sub/function searches your hard drive(s) or directories for file(s) like the Windows 'Find Files or Folders...'. It uses mainly the Dir() command and can be used with any programs and visual basic I have encountered. This helps uses to quickly find a file or program for their applications.

C_Volume2 #71592
Open Folders As Windows from VB5

This code is for those people who want to open up folders/directories as separate windows, as compared to the alternative fileboxes.

C_Volume2 #71610
Embedding files in VB to be able to make them on the fly

To be able to make files on the fly. To embed those files within the executable of the vb program. To have one exe file that can make dependent files as needed.

C_Volume2 #71638
VB HexEditor

quite nasty hexeditor in vb6 can handle files upto 2.1 gb (uses a custom filebuffer to avoid loading all data at once) supports copy paste , delete / insert bytes and multiple documents.. i saw some other guy has submitted his hexeditor so i figure i could just as well submit mine to instead of letting it just rott on my hd... its not finnished but its still quite nice , hope you like it... start hexed.vbp list of features: filebuffer (load files upto 2.1 gb) copy paste data in both hex/text mode mdi app custom scrollbar to allow more than 32k lines file compare tool , compare 2 or more files string extractor , extract strings (ansii/unicode)

C_Volume2 #71641
Directory Sizer

Suffering with the problem of lack of disk space I knew there must be a directory on my hard disk that contained a lot of information, this is why I wrote this application. Its simple in what it does but can provide useful information about your hard disk space. It allows you to select a drive and then by using a tree control lets you navigate through it displaying hard disk usage for each folder it sees..

C_Volume2 #71645
Directory Sizer v2

This is version 2 of my directory sizer. This has been brought on by the comments left for the previous submission. Its idea is simple but is useful where by it lists sizes of directories in a Treeview. In this version I fixed a little bug with duplicate keys and have also made the directories sorted by space used.

C_Volume2 #71670
A Find File Procedure No Looping

This procedure finds a file and returns the full path, provided a partial path it will search all sub dirs. No looping only 1 API - this is the kind. I can't really take credit for putting an api to use, just sharing something that you might find useful.

C_Volume2 #71706
Attributes

It sets the Attributes for any file. including hidden read only and archive.

C_Volume2 #71707
Delete folders (Very easy)

Very easy to delete your directory without going through the hastle of deleting all the files and sub directories first.

C_Volume2 #71747
Explorer Treeview Sample

This code shows how to load an Explorer type treeview control using the FileSystemObject. The heart of the code is modTreeview, where all the work takes place. You can drop this module into your project, reference the FileSystemObject and go. All the code is here to show you how to load the treeview control, handle clicks and get the path back. Nothing majorly spectacular but handy. It is also fast loading because it doesn't load the next "level" until the user clicks...just like windows explorer.

C_Volume2 #71849
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.

C_Volume2 #71876
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.

C_Volume2 #71897
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.

Languages
Top Categories
Global Discovery