Advertisement

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

2_2002-2004 #117053
ZEO Paint

!!!Please Leave Comments!!! This Prog is a painting program able to draw lines, free-hand, point to point to point, circles, rectangles, triangles, erase free-hand, selected areas, saves and loads pics, floodfill objects, create custom colors, save colors.

2_2002-2004 #117063
GetPathSize

Very fast recursive function to calculate the size of a directory (folder). This code is simple and built for speed. This code does NOT use the FileSystemObject because it is NOT installed on all PCs, therefore you cannot write code using it (unless you include the scrrun.dll - Microsoft Scripting Runtime with your application). **Update - I added the search options for System, Hidden, and Read-Only files so the result will truely match the same number of bytes that is displayed in Windows Explorer properties.

2_2002-2004 #117086
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.

2_2002-2004 #117164
File I/O Functions

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

2_2002-2004 #117207
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.

2_2002-2004 #117218
A FileExists Function

Checks to see if a file exists.

2_2002-2004 #117237
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.

2_2002-2004 #117238
File/Directory/Drive Exists (Updated)

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

2_2002-2004 #117239
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).

2_2002-2004 #117247
RmDir

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

2_2002-2004 #117263
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.

2_2002-2004 #117283
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.

2_2002-2004 #117301
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.

2_2002-2004 #117329
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)

2_2002-2004 #117332
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..

2_2002-2004 #117336
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.

2_2002-2004 #117361
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.

2_2002-2004 #117397
Attributes

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

2_2002-2004 #117398
Delete folders (Very easy)

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

2_2002-2004 #117438
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.

Languages
Top Categories
Global Discovery