Advertisement

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

2002C #8865
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

2002C #8866
File Dependency Sniffer v3! [MUST SEE!]

(******Another Big Update, v3 now... I added a 'All Files' (*.*) scan to it so you can see Every File found in an EXE!!! It also sorta the listbox alphabetically! Check It Out!)(*****Updated!!! v2, Calling it v2 cause of the major changes i made to the project including a working filtering scheme that correctly fixes the found filenames correctly as far as i can tell... tell me what u think of this new version!)(****Updated!, Now has a Search Query box feature so you can search for more than one file extention at once! I also included 2 filtering loops to remove bogus findings, but since it is untested fully i left the original project in the zip for you to have regardless... Check it out.)(***Updated, removes dupes now cause some programs have a reoccuring file being found in the search, so i gave the option to remove dupes or not, check screenshot!)(**Updated, I just fixed the VB5 InstrRev part, sorry if it didn't work..)(*Updated, Just added a save feature to it for developers who want to include it in a readme or something, good luck) Description: I needed a file dependency sniffing program really quick for a friend who sent me a Borland exe and needed to know which dlls it needed so I ran to PSC to find my self searching for keywords and not get anything, then I tried one word and kept browsing through the many entries of PSC. Then I came accross one, called nFile_Search, it was so pathetic I could have cried, the only thing i liked was the interface so I kept it for this program, heh, but I cleared the whole form of code and wrote this up and made it so you can search for other types of files besides .dlls, to expand its usability (.ocx, .exe, @ for emails, anything) so enjoy and if anyone out there has tips or ideas to make it more effecient then please submit. Also please vote if it isnt too much trouble ;p IM me at: Mike3dd Email: MikeCanejo@hotmail.com for anything. ;]

2002C #8872
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').

2002C #8878
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.

2002C #8887
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

2002C #8917
Search for file(s) on a Drive with API

My coding actually does several things. The main thing is that it can search an entire Drive and all of its Directories for a file you specify and at the end of the search display the results of it. Or you can do the same thing but this time look for any file with an extention you specify. I made this search for the file using API but I left a function in there you can edit to search for the files without API but it's a little slower and not recommended. This Screen Shot can pretty much explain it all... E-mail: mikecanejo@hotmail.com AIM: Mike3dd

2002C #8936
Serial Comms with Windows API

When I started with Serial Comms and the API's I tried to find a piece of code as an example... I couldn't , so I wrote my own .. and here it is. Any suggestions to better the code will be great. This little program will open a COM port and read from it as well as write to it. Try this on any serial comm's device like a Modem, barcode scanner, Comm Printer etc.

2002C #8978
Rename file

This will rename a file in one line of code. Very simple so I do not expect to be voted for but Comments are nice.

2002C #9023
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

2002C #9043
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.

2002C #9044
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.

2002C #9070
Check for the Existense of a file

Checks if a file exists. If you have anyquestions fax me at 1(305)847-0621 dont forget to visit my website for more codes and full program source codes + forms available for downloading

2002C #9074
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.

2002C #9094
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...

2002C #9112
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.

2002C #9151
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

2002C #9164
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.

2002C #9178
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.

2002C #9200
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

2002C #9240
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!)

Languages
Top Categories
Global Discovery