Results for "Category: Files/ File Controls/ Input/ Output"
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
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.
This will check if a dam*n file exists the easy and "right" way! Plz vote for this code if you like it!
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.
Get all the folders (and files) in a given directory. Very simple, and easy to use code. Just copy and paste into your own program.
A VB clone of Windows My Computer, A file browser that shows the files Icon, or and icon of what type it is, It shows you how you can have a file directory in a image list, rather than the built in boring one.
This is a small program that I use to pak text file into one big one. It does not add an compression to the file just paks them in to one I hope to add some compression into it soon or when I can find some infor on how to do that. Any way I have also included a Winzip like Self extracter that you can build the pak file in to exe and run them on any computer. as long as vb runtimes are installed anyway Hope you lile the code.
Example of the File System Object
You can save information about your books in it ! A nice example of database program.Included a kool sub-routine that creates shadow ! A Must Download ! ! !
' This function is for use when parsing(splitting) a data string that ' has a comma delimiter. The normal VB Split function does not take into ' consideration of a comma embedded within a Fields' data string and ' will parse the information incorrectly. ' ' This function takes into consideration the a data field may contain ' a comma and parses the data as entire string. The data string being defined ' as the data between the two Double-Quote marks. This function also ' prunes the leading and trailing double quote marks
This code is simply sorting lines in a text file alphabetically using a listbox control. This could be good for sorting wordlists, names, adresses.. etc.
This Simple program (for Beginners) retrives file properties like Size, Modified date and time and also the File attributes. No API's, OCX's or DLL's. Just simple code anybody can understand. I hv tried to comment the code (I am not good at it though). Pls. Pls. Pls. VOTE
Newly Updated with TREEVIEW added... check out the screenshot! Ever wanted to extract the info quickly from your Visual Basic Project file? Use this to code to do that... grab the information, like dependencies, forms, classes, ect..., use the info in another project... Make your own SourceSafe or Project Organizer. This code teaches how to parse a file and how to use common dialog. Enjoy!!
This program is a simple application that is designed for one thing and one thing only: It senses the "Splash Screens" used by Windows when you start up your computer, the computer is in the process of shutting down, and when Windows prompts you "It Is Now Safe To Turn Off Your Computer," or whatever you have it set to. This program allows you to copy those images to the clipoard, as well as "Refresh" them. If for no other reason, check this program out to learn what files Windows uses for the pictures behind the splash screens, and how to load pictures into pictureboxs/images on runtime, a function that is VERY helpful when skinning. This could be useful for people attempting to make their own themes. By using the knowledge that I gained from this application, I wrote a program that changes those screens to some special files that I made. P.S. Throw a vote in my direction if you can find the time: You have no idea how long it took me poking around in my hard drive to find these files, and to figure out how to load pictures on runtime. And for those of you wondering how you load pictures on runtime, this is the simplest code available. Example: Private Sub Form_Load() Picture1.Picture = LoadPicture("C:\Windows\Bubbles.bmp") End Sub
Learn anything you want about Visual Basic.
This demonstrates some use of the common dialog and richttext box control. It is simple and i thoguht it wouldnt require comments. Enjoy!
An update of my original hex editor with more functions. Please vote for me!!!
The code removes all files from the specified folder and all the files from the subfolders of the specified folder.
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.