Results for "Category: Files/ File Controls/ Input/ Output"
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
Simple function to check if file exists. Detects Normal & Hidden files. Improvement of code from Greg G., and incorporating a suggestion by Larry Rebich.
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...
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.
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
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.
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.
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
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!)
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.
Read a directory and fill a treeview and a file. Load the file to another treeview. Updated! New useable interface! Faster!
Select item in listbox on mousemove; Drag an item to different position; Most source from MSDN , two lines from yours truly.
'This simple piece of source code will 'show you how to call and play Mp3, 'Mpeg, Midi and Wav files without 'using any extra controls. Simple and 'easy. Yeah what more would you want, 'well some extra buttons but they 'will be coming soon.
You may have noticed that in Windows the Browse Folder dialog is used in may programs, even the shell if you have used the find program you can choose browse and the folder below appears.WITH NO NEED FOR MODULES!!! You can implement this dialog bow into your applications very easily by using the following API calls. SHBrowseForFolder SHGetPathFromIDList lstrcat
This is a big update from the other editor I posted here. This inlcudes: A status Bar, which holds the tooltiptext, A Tab Strip, and updated use of the CommonDialog Control. In this code, you will find out how to convert an ASCII (from a file) string to Hex and then Decimal. Then convert the decimal back to hex and write it back to the file. This is code also includeds a lot more intrinsic documentation. 9K Download......Ha! Have fun with this baby. UPDATED: MARCH 11th 2000. Now uses an UpDown Control in sync wiht the txtCASH control.
These are two functions I wrote to save and load a treeview's nodes (saves the .text, .tag, and .key properties) to and from a text file. This is a very simple code and should be very easy to incorporate to any project.
This code will read a file line by line and create a comma delimited text file which can then be imported into Excel.
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
Drag & Drop file(s)
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.