Advertisement

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

5_2007-2008 #173215
Comma De-Limited

This code will read a file line by line and create a comma delimited text file which can then be imported into Excel.

5_2007-2008 #173229
Choose Directory

Via API calls, has the user choose a directory. No commondialog needed!

5_2007-2008 #173257
DirectoryTreeview

There are no drivelist, dirlist, or filelist controls available in VB.net. This example shows how to use a treeview to display a list of folders to a user, and allow the user to select a file. Compatible with VB 2005.

5_2007-2008 #173276
CopyFileAny

This code allows you to copy any file, including your application to another destination at runtime. Note: This code has only been tested on Windows 98 using Visual Basic 6.0

5_2007-2008 #173288
dragdrop.zip

Drag & Drop file(s)

5_2007-2008 #173312
MSFlexgrid Editing Lite

This is the 'lite' version of the MSFlexgrid Editing code I posed on the 12th. This version does not use any TextBoxes at all. It has pretty much all the same features as the 'full' code, but a lot less code. Unless you're pickey you'll never know you're being faked out. 9-24-99: Major Additions (1) erases current cell and restores it again. (2) ADD, DELETE, INSERT, EXTRACT rows / cols.

5_2007-2008 #173326
COPY, CUT, PASTE Source code on how to do it EASY

This Code shows you how to copy, cut, and paste with only a few lines this is very easy to do. This is the CODE and not just some garbage like those other copy, paste, and cut. AND IT WORKS!!!

5_2007-2008 #173386
Directory Cleaner (recursively)

This function attempts to delete all files and subdirectories of the given directory name, and leaves the given directory intact, but completely empty. If the Kill command generates an error (i.e. file is in use by another process - permission denied error), then that file and subdirectory will be skipped, and the program will continue (On Error Resume Next). EXAMPLE CALL: ClearDirectory "C:\Temp\"

5_2007-2008 #173387
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.

5_2007-2008 #173393
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)!

5_2007-2008 #173409
Change form backround with common dialog

Kind of like skinning your program

5_2007-2008 #173418
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.

5_2007-2008 #173430
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.

5_2007-2008 #173501
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.

5_2007-2008 #173509
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!

5_2007-2008 #173543
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).

5_2007-2008 #173548
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

5_2007-2008 #173555
access 97 password recovery

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

5_2007-2008 #173566
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.

5_2007-2008 #173595
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.

Languages
Top Categories
Global Discovery