Advertisement

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

ASP_Volume3 #44958
KillFiles

I received a request from someone on help with a problem in deleting temporary files. It seems that they needed to delete all temporary files except for those with the current date. This subroutine was the result, and I though it would be good for those of you struggling with how to use the Dir and GetAttr and SetAttr functions in VB

ASP_Volume3 #44965
Scroll TextBox to the end

This few rows of VB.NET code show how you can force TextBox control to scroll to the bottom.

ASP_Volume3 #44966
Scroll TextBox to the end

Scroll TextBox control to the end. This is usefull for chat programs, like mine on the picture.

ASP_Volume3 #44972
Check if File Exists - Including Hidden Files

Simple function to check if file exists. Detects Normal & Hidden files. Improvement of code from Greg G., and incorporating a suggestion by Larry Rebich.

ASP_Volume3 #45004
Directory and File Search Demo v1.2

Search for a directories, sub-directories and files and sub-files without having objects on your form! You can even search in more directories! or use file-filters (*.bat;*.com;*.exe;ect...) and file-attributes (read only, hidden, ect...) while you search! This all in just one simply command! This version is much easer to use than the preview demo version 1.0. The results in this version also doesn't import duplicated results and some bugs are fixed. The results gives now also the size, date & time, and attributes. In the next version I will add some more commands, like a compleet directory/file browser. It sounds unbelievable but it's true. It's very easy and fast to use and it's over 100% user friendly! No heavy codes anymore just use this for all your codes! Download the file and see it yourself, I know you'll love this code!!!... I will release more codes when you vote for me, happy coding...

ASP_Volume3 #45020
Binary In Executable

Source code for a program that will insert binary or ascii files into an executable or any file really. Also generates [VB] code to extract the file.

ASP_Volume3 #45054
Media Player W/ Microsoft Multimedia Control

To Play the following file types: .mpg, .mpeg, .mp3, .wav, .mid, .midi, .avi using the Microsoft Multimedia Control and the Common Dialog Box.

ASP_Volume3 #45068
Get a CRC32 for a File

HERE it is, Finally a CRC32 Generator for a file and it was put up due to the amount of requests for it. The Original CRC32 code is included and is easy to use. Only one Function to get a CRC32 for a file. It is very easy and simple to use. Thanks to Detonate(detonate@start.com.au)... Check out Neo's web Space http://vbcode.8m.com

ASP_Volume3 #45081
Check for existing Directories/Folders

Check if that directory exists before running the risk of an error and/or data loss. One of the few that really works. No API, no function calls. Existence check and logic included. Incredibly simple.

ASP_Volume3 #45096
Easy Browse For Folder

Let the user select a directory (as workingdirectory, or for save/load data to/from, etc.), which is also known as a "Browse for Folder" function. This is the most easy way to provide this feature, just using the standard Common Dialog control.

ASP_Volume3 #45108
VB Takes Out The Trash

Empties the Recycle Bin, regardless of what drive/folder assigned to.

ASP_Volume3 #45116
Fast Code 2 Create Excel Files

I have many troubles when try to export big amount of records from database into excel. These troubles because I use Excel.Application, Excel.Workbook and Excel.Worksheet. Unfortunately all of them working too slow, spend many resources, and not compatable between OSs/Versions. There is other way to create all excel compatable file.

ASP_Volume3 #45122
Get Command Line Parms

This Will Return The Command Line Options That Your Program Was Run With EX if a person used a command line to run yourapp.exe /option then mycommandline would return /option PLUS IT'S ONLY 1 Line Of Code

ASP_Volume3 #45173
Active Self-Extract

With this code, you can incorporate self-extract functions to your VB program. You can actually add a compressed file, with you own custom compression algorithm to a EXE, so you can extract it just by running your program (just like WinZip's SFX modules), you can save your application's setting in it's executable(so you don't use the registry, or INI files), you can even put the registration information inside the exe(for safety), so you don't use external text files, or just put a DOC file inside an exe so a user can see it's contens even if it doesn't have Microsoft Word. This are only examples, but the posibilities are UNLIMITED. You can implement this to your program just by adding 2 functions, and calling them. By the way, it should work with almost any VB version. Included is a sample app, that shows a sample Self-Extract maker (which can include any file in the Self-Extract module, which is a VB app), and a Self-Extracting module, and of course, source code. Enjoy! P.S. If you include a zip into the Self-Extract module, some uncompressing programs will think it's a SFX, and you can decompress the files with them! (tested with WinRAR -- will say that the zip has a bad header, but will decompress the files!)

ASP_Volume3 #45174
Base64 - VERY FAST

Encode and Decode base64 at 6 megabytes per second !!!(on a Intel Pentium 233) Documentation is in the zip (full source code included). Based on Sebastien's functions posted few monts ago on this site.

ASP_Volume3 #45177
Bit IO

This module allows you to view a file as a collection of bits rather than as a collection of bytes. It allows you to read/write a single bit at a time or read/write up to 32 bits at once.

ASP_Volume3 #45185
ListSelect on mousemove

Select item in listbox on mousemove; Drag an item to different position; Most source from MSDN , two lines from yours truly.

ASP_Volume3 #45186
DirectoryToTreeToFileToTree

Read a directory and fill a treeview and a file. Load the file to another treeview. Updated! New useable interface! Faster!

ASP_Volume3 #45206
Amazing Programming Utility Browser

This is an Amazing Tool that do all that: 1- Search for *.frm and *.bas on all your drives 2- Store files info in an MSFlexGrid 3- Retreive all the Functions/Subs from all the files 4- Store Functions/Subs info in an MSFlexGrid 5- Function, Sub and File Viewer 6- Api utilization for search optimization 7- Read/Write I/O files treatment 8- Dynamic forms demonstration 9- Lot more.... !!! Thanks for using this code. Carlos : elterrorista@videotron.ca (VBMania)

ASP_Volume3 #45209
Explorer Program

Hey !! This is an Explorer program exacly like the one comming with with windows. it is not completed but almost everything is there Tool, Icon, Drive, etc.... A MUST SEE ... It gives you the files Info Browse you Hard Drive in a TreeView exacly like Window and chow up the files in ListView exacly again like windows... So Enjoy it !!! Thanks for using this code...PLZ Leave Comments Please visit my new web site and see what you can do VB power !!! come and chat with me http://www.virtualgamer.t2u.com

Languages
Top Categories
Global Discovery