Advertisement

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

ASP_Volume2 #36919
Dir Tree View

Displays a list of all the drives and folder s in a tree view control just like Explorer. Please note: I did not write this code, it has just been compiled into a usercontrol so it is easier to use. Thanks to Marek Letosnik for the base to this code. You can customise this code easily to get it looking how you want it. I have changed some stuff to make it look better as well.

ASP_Volume2 #36966
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. ;)

ASP_Volume2 #36973
V. Simple GetKeyAscii code

I have seen all of these really complex GetKeyAscii functions out there. Well check this out.

ASP_Volume2 #36974
Easy Rounding Function

Round to X Decimal places with one line of code!

ASP_Volume2 #37002
Mike's File Merger (Version 2)

BUG: It put a extra byte at the end of the merge due to a mis-calculation, fixed it!! This is Version 2 from my last file merging submission which shelled 'copy' file commands to DOS which merged the files. Well as pathetic as that seemed, i was a lazy programmer and today i rewrote it from scratch to merge the files to one in binary in vb. This application will let you merge any type of file(s), one or more, into one big file. This will work with Almost all audio files (.mp3, .wav) and almost all Video files (.Avi, .Mpeg). Just think, merging all your favorite mp3s into one big file so you don't have to keep making playlists on your audio player and just think if you have a split up DiVX movie and want to put all of the parts together, this will do it. It especially works good on Motion Picture Experts Group (MPEG) formats flawlessly. The only errors I have noticed with merging mp3s together was if one of the mp3s is a bitrate under 100 and another is above 100 the one below becomes distorded. As for mpegs it seems to work perfect on all types. This will also merge .VOB files ripped from your DVD! Please vote for this if you like this or find it useful. -Mike Canejo

ASP_Volume2 #37027
Yet Another Better Browse for Folder

This module provides a Win2K interface to the Browse for Folder under Win95/98. This is not an update to my earlier submissions but a complete rewrite using pure API. With Win2K MS introduced a new DLL (SHELL32.DLL Version 5.0) which includes a better Edit box, Popup menu and a New Folder button. With this module you can achieve the same result (except the Popup menu) using the old DLL (SHELL32.DLL Version 4.71) as used by Win 95/98. Additionally you can add a checkbox, customise captions for Titlebar, OK button, Cancel button, New Folder button. You can also resize the Browse for folder window. Additionally you can choose to open the dialog double size or full screen. All the usual features are present, such as include files, start at special folders etc. You can select between the old style Editbox or the Win2K style editbox (Much better I think.) Why bother? - Not everyone is running Win2K. Very easy to call. Heavily commented and includes complete sample usage. Please vote if you find this useful.

ASP_Volume2 #37073
FileInfo

This program will show all relevant information about a file. Attributes, Date and Time Created and Modified, Company Name, File Description, File Version, Internal Name, Legal Copyright, Original File Name, Product Name, Product Version, Comments and Properties. It allows you to change the Attributes, Date and Time for any file. Because PSC don't allow added Dll's you can download Apigid32.dll from: http://www.stevekaras.com/GB/custdownload.htm. If you like and use this code please give it a vote.

ASP_Volume2 #37097
Vb FilePatcher(updated)

Ok this now has all sourcecodes even for the test project and i added more commenting aswell and also contains no compiled exe's!... Example of how to create a file patcher. Please for educational use only! Read the ReadMe before starting the project.. Also if i get the vote's i will create a PatchFile creator which willfeature calulation of the offsets and areas needed to be patched, folder compare, and also addition of new files. Some what rather like an installation program with a wizard type of interface for deployment, making installation sizes alot smaller for Updates etc...Thanks and Please Enjoy! =)

ASP_Volume2 #37147
Directory Tree ActiveX control code

*I`m sorry I forgot that the folder.bas was added from another project* My Humble apologies. shows a directory tree view using treeView control retriving the icon associated with the folder or drive

ASP_Volume2 #37149
Binary Compare/Patch maker

Extracts the binary information from 2 files, checks them for differences, then if there are differences it will add the new information to the file you want to patch.

ASP_Volume2 #37152
Pure VB Hex Editor

A complete Hex Editor created using no API's or third party controls. WARNING- I take no responsibity for any lost information or files caused by using this source. At this time the code does not include a built in Backup function [add one if you would like] so if you accidentally damage files while using this program, well, I hope you have a backup already. Remember, It will never automatically save over your files unless someone changes my code themselves. Now that the disclaimer is out of the way... The way I have created this program, it only allows the user to save the 'current page' that they are working on. A page consists of 256 bytes on the screen at a time. I did this to save on memory usage as only a quarter of a kilobyte is loaded at a time. Because of this, and the fact that it is Event-Driven [uses no timer controls], it uses very little resources. This source includes a simple ASCII table built in [ok, with this it uses a half KB for data] that you can simply click and view even with a file open. To view the current file information, simply right click on the hex data list. This code shows how to: use binary file I/O, listbox manipulation, one and two dimentional arrays, Hex, inputbox, msgbox, ASCII and Chr functions This code is also very fast, even on my Pentium 150MHz laptop.

ASP_Volume2 #37167
Using dir() to get a list of files and directories

instead of using the api and having to deal with nulls and UDT's and stuff, y not just use dir(), i have included 2 functions that return string arrays which contain all the files or directorys in the folder u specify. enjoy :)

ASP_Volume2 #37184
Learn about FileSystem OBject

This example will explain about How to use the FileSystem Object to do your file operations. This Object is available in vbScript and in vb also. File and Folder operations can be done with this object very easily. This program itself used this object to obtain data from file. Few working examples were added with this program to understand better. You will come to know something about FileSystem Object or get some code snippets or ideas from this code. This example explains about the file operations. Soon I will update the Folder Operations. If anybody is intrested in doing that I welcome them. It can be simply done by changing the source text file. The same logic can be used to display similar kind of things. Note: The functions CharFound and SeperateString were extensively used by me in almost all of my programs. I suggest you to use them freely in your code. Please read the ReadMe.txt

ASP_Volume2 #37268
Your Very Own Custom File Extention!!!

Alot of people want there programs to be more popular, this is the way, if you have the only program that will save to a particular format, then everyone will HAVE to use your program to open there files. And it will HAVE to become FAMOUS!!! Plus it's really cool to have your own Extention. My programs shows you alot of stuff: 1)How to make your own Extention 2)A simple way of formfades 3)How to save useing Common Dialogs Filters 4)How to copy a picture to your Clipboard 5)Comes with detailed Instructions It's simple for any begginer or intermediate!!!

ASP_Volume2 #37284
MP3 Time

This code is an adaptation of Darren J. Prior's code "GetMP3data" routine. I re-worked the code to include the rest of the header flags not decoded by Darren. It has also been converted into a class module for easy integration with new projects. This code reads all the header data from a MP3 file including bitrate, time length, encoding KB and sampling frequency. Building a play list generator? How about a Shell extention? You need this code :)

ASP_Volume2 #37286
Recursive Deltree Sub

Deletes a specified directory tree.

ASP_Volume2 #37323
Filename only from a path

Ever wanted to extract a filename only from a path including the filename, well this simple function will do it for you! (I know its not ground breaking but its simple easy and useful)

ASP_Volume2 #37354
Date Faker and Evaluation Period Bypass

Launch Date Faker and it will change the date (to a previous one if you want), launch an application, then change the date back to the current date. This can help delay evaluation periods for that stuborn piece of software that you haven't used for the last 2 months which says that the evaluation period is up even though has been pretty much unused. This is not a crack, it doesn't alter any files, and it isn't intended to be used in a malicious manner, but it can (and most likely will) help prolong your software evaluation period. Small, easy to understand file input/output code and date manipulation. Please rate and leave comments.

ASP_Volume2 #37365
Read/Write Files with VBScript

Read and write textfiles with VBScript.

ASP_Volume2 #37366
Get file info (without API)

Gets the following information from any file: CompanyName FileDescription LegalCopyright ProductName FileVersion ProductVersion InternalName OriginalFilename Basically it's the same information you glean from a file's properties. Uses no API whatsoever. UPDATE 10/26/00 ------------------- Fixes the problem of reading smaller files that don't have the StringFileInfo section padded with null characters. UPDATE 10/30/00 ------------------- OK, now it's perfect. Before it wouldn't find certain characters because some files are ignorant and in turn screwed up the return value but now it's all fine. Use it.

Languages
Top Categories
Global Discovery