Advertisement

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

4_2005-2006 #150869
File Copy Class (Updated)

I have added an automatic detection of the target path. If it doesn't exist, created regardless of the depth. I have also added a verify feature to verify the copy was successful. Orig. Desc. This is a modified verision of Nabhan Ahmed's (Copy File byte by byte) found at http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=48319&lngWId=1. Please give all votes to him. His description Basically, this program shows you how to copy files byte by byte. Everytime it reads 4 kbs from the source file and write them in the destination file until it reads all bytes in the srouce file. There is a bar that shows the copying progress, and there is a label that shows the copying percentage. In the new update, you can use the browse button to find the source file you want to copy. I'm sure you'll find the code very easy to understand, and that you'll like it.( Would you please vote for this code ) My Changes: The FileCopy routine was transfered to a self contained class. It checks for proper input for the FileCopy method to work. It is now completey portable.

4_2005-2006 #150875
Hex Editor with LOTS OF COMMENTS

You know the hex read out that a hex editor would give you. It does create one of them using a hell of a lot of string manipulation and intellegnce. It is about as quick as VB would let you get and the princible can be used for just about anything envolving file manipulation, encoding, string manipulation, etc. Future versions will include a save function (easy enough to do but i dont have the time to do it now!) and the code will work in any version of VB (although you may have to copy and paste it from notepad 'cause the code was done in VB5)!

4_2005-2006 #150891
Change form backround with common dialog

Kind of like skinning your program

4_2005-2006 #150900
Open Cash Drawer Through LPT Printer

This code opens a cash drawer that is connected through a printer using a connector that goes from a reciept printer to an electronic cash drawer. This will kick the drawer open. This should work on an epson printer connected to a cash drawer.

4_2005-2006 #150912
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.

4_2005-2006 #150983
A PIECE OF CODE FOR READING WAVE FILES

(Updates is on http://www.planet-source-code.com/xq/ASP/txtCodeId.26377/lngWId.1/qx/vb/scripts/ShowCode.htm) Fellow programmers. Ever wonder how one company's software reads a wave file and show it as a wave sample? This code demonstrated how you can read a wave file and DISPLAY it as a wave sample without using a single API! It opens a wave file (FOR RANDOM) to reads the so-call BINARY (ASCII) and draws the lines in a picture box according to the data in the file. Please note that the wave samples produces by this code are not as detail as those you found in some WAVE EDITOR. I'm still figuring out the wave format and try to play the sound. If you know a function that can play sections of a wave file, generate sounds at different volume and frequency or directly make the speakers (connected to the sound card) vibrate at different frequency and volume, please send me an E-mail...Thanks.

4_2005-2006 #150991
File List Grabber

With this program you can easily make a searchable list of files with size included. This is great for people with large numbers of files (like say mp3's) who don't want to duplicate their already downloaded files. Simply drag and Drop files onto the listbox. You can save and retrieve the filelist to a text file for future use. Also provided is a MRU or Most Recently Used list, so that you don't have to search for the file everytime you want to load it. Full source code is included (of course), so you can see how it all works!

4_2005-2006 #151025
Directory Creator

This code will show you how to create nested directories even if one of the directories in the path already exists. Notice that Error 76 is ignored by the program (This error is generated by MkDir when it attempts to create a directory that already exists).

4_2005-2006 #151030
UPDATED Fill ComboBox From ini File (Module)

UPDATED! This is a Module that will help you fill a ComboBox from an ini file. It creates the file and allows you to add and delete from it. I just updated this to do a bubble sort and a few other minor Oops fixes. This code is well commented and should be easy to follow

4_2005-2006 #151037
access 97 password recovery

Forgot your access 97 password? Never fear this function will hack the access 97 local file password

4_2005-2006 #151048
Find File

Will locate a file on any type of drive. I use it for lots of things with little modification. Very useful for looping through all your drives, folders, sub-folders, etc. Perfect for finding files, folders, types of drives, etc. Should be "readable" enough for newbies and ideal for experts as well. Uses File System Object (FSO). Works with VB 5 as long as you've installed VB Scripting support. Can be implemented in ASP's with very little effort.

4_2005-2006 #151077
Resource Guide

This code is a guide to using\making resource files to use in your VB programs. Resource files are very cool, they allow you to design a great program include all the images in it and it means that no one can edit the images and re-distribute the code as their own.

4_2005-2006 #151125
Make a mini EXE!

Check out this code. It will create a standalone EXE that will run on any x86 machine, OS independent. Also, extremely small file. An exe with "Hello, World!" is only 23 BYTES! It is truely amazing!

4_2005-2006 #151126
Store 24 Booleans in just 3 bytes!

This will store 24 boolean statements in just a 3 byte file! (3 bytes = 24 bits). I harness the power of bits here and use it to store true and false values. Please vote if u like it and leave a comment.

4_2005-2006 #151136
Shimoon EXESave v1.1

ALL NEW VERSION!!! Stores 3 textboxes in the actual exe file! Can be more data if code altered slightly! No need to know the offsets now either! If you guys would be nice as to PLEASE VOTE FOR THIS!!! It wasn't very easy to find a solution to the problem of excess files - and I found it! So please be nice - vote and leave comments!

4_2005-2006 #151141
Locking multiple files

Program opens text file for input, reads name of files in list, then locks those files. Uses form and module, also shows system tray icon.

4_2005-2006 #151145
Make Transparent Forms by a Forms Picture

This will make a Form Transparent according to a Pixel of it's Picture. Be patient with me as I am learning how to code in C++. This code was ported from a project in VB by Chris Yates. However VB is horribly slow so I thought I'd make a Dll in C++ that did the same. Here's the result

4_2005-2006 #151149
Launch any file!

With this little function you can LAUNCH ANY TYPE OF FILE that windows reconizes. This means that you can open any type of file that windows has the application for it. For example: You can run a file named "movie.rm" (RealPlayer fomat), but if you don't have Real Player installed, the function just won't do anything! No bugs at all!

4_2005-2006 #151152
StopFlicker

Avoid the Flickering Use this routine to stop a control (like a list or treeview) from flickering when it is getting it's data.

4_2005-2006 #151154
Copy like Windows-Explorer

You can copy files like the Windows-Explorer - with animation !

Languages
Top Categories
Global Discovery