Results for "Category: Files/ File Controls/ Input/ Output"
I recently started working on a huge Visual basic program (150+ forms). I needed a quick way to find what was calling what. After not finding anything, I made this. It basically loops through the vbp, frm and bas files to develop a relationship of forms in a tree control. Beware, there is some spaghetti in this app. Enjoy!
This example compares four file loading methods, (the normal VB Open method, the ReadFile API, and other methods involving MemCopy API), you will also see the difference between returning a String or a Byte Array. I did this example because I keep seeing people using the normal VB Open command to load files, even for Hex editors, as you will see there's a huge difference between using it and using an API. The test in the screen shot was made with a 1GHZ P3 Notebook with 384MB RAM (as a compiled .EXE), please note that times may vary from test to test depending on what your computer's doing, etc. Comments and/or improvements as well as votes are welcome.
This code detects motion on videogram streaming from a WebCam. Once detected it saves the corresponding dequence of images in .bmp format
If you want to see your any folder background beautiful then try it!!!
Open a file and overwrite its contents with random binary data, up to 1 billion times. The length of the binary number is taken from the number of chars in the file to make sure it really is overwritten. Seems to be quite secure ;)
Pure visual basic implementation of the Adler-32 algorithm. It is much faster than the CRC32 algorithm yet still provides an extremely low probability of undetected errors. Commonly used in the ZLIB/Deflate Compressed Data Format Specification version 3.3. More info can be found at http://www.info-zip.org/pub/infozip/zlib/rfc-zlib.htm
TFS 3.11 will take any number of files - you can even right click a file and select 'Delete With TFS' - and overwrite them with random binary data up to several hundred times. The data overwrites every character in the file, so it is secure, but a bit slow. I've also included the DOD routine by Michael Bos as an alternate method of deletion. Also features a progress bar to show the deletion status and can scan drives for temp files.
This code will make an archive from any directory and will show the progress in a progressbar. Very useful!!!
This will split a into parts of the given size. I know that there are a lot of these on psc (and other sites), but the code here is clean, neat and very well commented and keep in mind that this is for learning purposes. Good for anyone learning about file/string handling. The gui isn't up to much, but the code is centered around a module, so you can just add the module into another project and call the functions. You only need three things to use the module, a form, a label and a progressbar. The interface is entirly up to you. All checks are done internally, so the interface code is about as minimal as you can want. Any suggestions for improvements are welcome and feel free to vote :)
This 1 line of code will Open any file with their correct default program. EX: opens .Doc file with winword and .Zip file with WinZip..Or any file with their default program..
This program will show you how to create a file with a specified size with accuracy. There's not that many uses for this program but it's accurate and comes complete with a progress bar and a size calculator. This is heavily commented, so please post some feedback or even better, vote for it ;]
In a Drop Menu in one of your programs, you can list the last eight files the user opened. This will allow the user to quickly access a recent file again. I literally copied a sample from the VB5.0 package and eliminated the uneeded code.
File Manager - I've seen no file manager's like this one. This is a popular format for a lot of programs. All Folders, Files, etc are in a Listbox. When I couldn't find any source code to do this.. I made it myself. Please let me know how you like it.
Pure visual basic implementation of the CRC32 (Fletcher) checksum algorithm. Used for detection of data corruption. In short, this class provides an algorithm for computing a unique (sort of) numeric value that represents the composition of a file. For a faster/better method see Adler32 checksum. Note, Fletcher check insensitive to some single byte changes 0 255.
Hi all. This scans all archives within a directory and look for files names (in the archive) containing specific string. In the snapshot, I've been looking for zip archives containing files which names contain ".vbp" (i.e. VB project files). Hum, not very clear huh? Oh well, I understand myself :) Oh, I almost forgot, you can check/uncheck listed files and move them to any other directory. Also supports ARJ format. LZH/LHA support is dodgy. The Zip/Arj/Lzh header decoding module comes from somewhere around there (I can't remember the author though). UPDATE: you can now select the drive you want to scan (sorry for forgetting that and thanks for pointing it out, I didn't even notice my mistake!) and you can sort archives by number of files it contains. To answer the question "why not ARC/RAR etc,...", it's because I use a header decoder made by Martin Carlsson (who I thanks!) which coped with these formats only. Cheers :)
TFS overwrites every character in a file with random data (this data is specified by the user) up to several hundred times before randomly renaming the file and then killing it. This means that it can't be recovered from your hard drive - it really is a secure delete! As every character is overwritten, it's secure, but a little slow. TFS can also scan for temp files and adds a right click context menu to your files. If you like this code, please vote or leave a message!! Thanks.
Here a description about FSO(File System Object) and howto use it
This with use vb's link.exe to decompiler your exe to a text file.You will be amazed on what you see.the res file included needs link.exe added in it.this gets extracted during load to the apps current directory.Just to keep things stable from corrupting your main vb6 program.This is intented to help assist in develop a real decompiler. the tools are right here under everybodys nose!!
DoDi's vb3 decompiler has been decompiled and converterd to vb6 source code.needs to be completed but I figured with the assistance of you we could actually get a real vb6 decompiler would appriciate your feedback [email protected]
It can make an archive from any files (without compression) and can extract them. It can open an archive and show the contents. Also it can split an archive and it can show the contents of a splitted archive. It has got an internal viewer. Faster then CYBER-CRYPT!