Advertisement

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

ASP_Volume2 #30886
FindFile - Fast, using the API

Uses the FindFile, FindNextFile, and SearchPath API functions to quickly find a file on your hard drive. Runs faster than methods which use Dir$.

ASP_Volume2 #30912
HyperFast! Read/Write File Functions

These two functions are designed to read and write a file as fast as possible in VB. It is faster for some cases than WinApi Read/WriteFile functions because you don't have to convert binary to string in a loop. Thats why, it is very fast and useful for any purpose. I have created it for my Encryption programme and with Windows Crypto functions and this two functions, my encrytion programme works faster than most of the Encrytion software you can download on the net. Hope it will be useful for you. Thanks. Ozan Yasin Dogan www.uni-group.org (will be online in 01/06/02)

ASP_Volume2 #30915
Embed Binary Files In Programs

Embed binary files within your programs to be written out to the file system once the program runs. This demonstration creates a Word document.

ASP_Volume2 #30965
Multi File Extantion remover

The program can remove extentions from multipile files, or add them to the files. Prefect if you need to renmae *.--- files or to add --- extention. The code is simple and readable, easy to modify for your own use...

ASP_Volume2 #30989
Path manipulation

There are many methods you can use to return certain parts of a fully qualified path to a file. Here is the SHORTEST and FASTEST way to 1) return just the path, 2) return just the filename, and 3) change the extension of a filename. The code is so short that it is probably faster to keep it inline than to create additional functions. (I've done so here to better illustrate the parameters.

ASP_Volume2 #31023
Recurse thru sub directories

I haven't seen this on PSC using the filesystem object or a collection. very neat and fast since you don't need to go through it twice to redim an array. the only slow down with this code is the print statement.

ASP_Volume2 #31042
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_Volume2 #31090
Execute all files

Normal users use the Shell command, but that command can't execute all kind of files, but this can

ASP_Volume2 #31114
File System Functions

commonly needed file macros you hate to code over and over. Functions: GetFolderFiles, GetSubfolders, FileExists, FolderExists, SafeFileName, Read/Write/AppendFile, GetFreeFilename, FileNameFromPath,ChangeExtension, etc.. anyway this will help you clean up your code alot and make it more readable Dont forget to check my sight for more stuff: http://geocities.com/dzzie

ASP_Volume2 #31141
___*Calculate Pi*___

Calculate Pi. This will only let you go to 32763 decimal places. ************************************************* If anyone nows any API for larger math please leave comment about it. *************************************************

ASP_Volume2 #31180
CheckFileVersion

Retrieve the version of a file (EXE/DLL etc). This code should be paste into a module and just called via CheckFileVersion('Path to the Exe or DLL').

ASP_Volume2 #31192
*** Destroy a file without getting error! ***

This DOES use the kill function, but when you use this it actually opens the file you want to destroy, cleans it out, then deletes it so you don't get any error because of sensitive data!

ASP_Volume2 #31204
Open a text file FAST!

Opens a text file much fast than a "Do While Not EOF(filenumber)" loop. Makes file load times almost non-existant.

ASP_Volume2 #31213
Get the Windows and System directories.

These two functions will return the location of the Windows directory (WinDir) and the location of the System directory (SysDir).

ASP_Volume2 #31214
Get & set a file's attributes

Sets a file's attributes. With this you can create archive, hidden, normal, read-only, and system files.

ASP_Volume2 #31218
Input/Output to a text file

This code demonstrate a simple procedure for reading and writing to and from a text file. Level: Beginners

ASP_Volume2 #31223
A huge tip: Visual Basic Scripting Host

This tip is the most powerful bit of code I've ever come across. It will act as an exe but with no need to compile. However you must have either Win 98 or IE5 for it to work

ASP_Volume2 #31232
Create and save into .txt files.

This will create and write into a *.txt file of your choice. Put this code in a timer and you have yourself a keystroke logger. You can save the contents of a textbox into a file also.

ASP_Volume2 #31276
Check if a file exist!

This will check if a dam*n file exists the easy and "right" way! Plz vote for this code if you like it!

ASP_Volume2 #31289
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.

Languages
Top Categories
Global Discovery