Results for "Category: Files/ File Controls/ Input/ Output"
This is an update to synchronize. This has the missing timestamp code, and if file exist code. It still synchronize two directories files. Making them duplicates of each other. Supports UNC naming.
This code can be made to take a certain chunk of your choice from a file. Mainly for making resumable downloads etc, or working on a patch for a program... I made this cos im working on a file sharing program that downloads from multiple sources. SERVERAL UPDATES HAVE TAKEN PLACE (thanks to guys who posted comments improving the code)
This is is originally from Mark Withers . Mark Withers Mark Withers Mark Withers I do not want anyone to tell me I steal code. I just wanted to show Mark how to Update is code... I got it running under 1 second for a 20 Mb file... yes!!! under 1 second no, no API required... only pure VB optimization... I first calculated all FileLen and Len before the loop... this is THE optimisation that did all the thing then I used a buffer for looping through the file and I added null chars at the end of the dll name if it was too short, because in C++, strings ends with null chars I hope this helps you Mark Best regards, Jean-Philippe Leconte Senior programmer Win32/64 expert C++ / VB
Replicate folders with just a button
I am a fair VB6 programmer. I have taken a trial version of VS.NET. I decided to play with the new Owner Draw Menus. After around five total rewrites I am happy with these results. Simply follow the instructions in the Class #Region "Usage Notes" and you will instantly have XPStyle Menus without coding. Don't ask me how to get the real colors though as I gave up there(So many settings affect each one).
Even though you didn't seem interested in my TabPageXP submission, I have Updated it to a full Control. It has inherited the TabPage reordering bug (SelectedIndex) and has introduced a new one (well only one that I have found), adding Tabpages through the Collection Editor is fine, but if you add through the designers contextmenu you will get a standard TabPage. The TabPageXP Class has been updated to remove the flicker that no one complained about.(well at least on my P4 2Gig). Written in VB2003 Final Beta so the solution will not open in VS2002 (Sorry about that, but I don't have VS2002 installed since my Hard drive died).
It put a password to any .exe file.
This is a very easy way to add a Tree View (like the VB Control) in your html page. With 1 function, add TreeViews with or without checkboxs and links. If you like it, vote for it ! Simon
The function fileexists will return true or false and it works on all files (that includes hidden and system files). It also works over the network. I have to thank Joseph M. Ferris for the API Call. Guess what this code has no copyright because this website is open source. Some people are so obsessed with copyrighting every little thing they find out in VB. I once saw someone claim the copyright to the Kill Function. What a pinhead.
**Update** I fixed a small problem. I founf while working on my Mp3 player. It wouldn't add any files in the current directory, say "mp3s" it would all all sub dirs... //Original\\My code adds a certain type of file to a listbox or all files. As an example I used .mp3 file extentions. This isn't like those gay ones that add just the files in the current directory, it adds all the files in Sub Directories too.
It correctly executes a program
A class for creating Windows, Buttons, Edit boxes, and Multiline Edit boxes. It is very simple to use, and later I will add more types(Listbox, static(label), frame, etc). I included project files for Brland C++ Builder 5, and MS Visual C++ 6.
This module simplifies file handling. Please download the latest version! This version is obsolete! Click on Other Submissions by this Author to find the latest version!
A "GOOD" print module. Supports many functions like : SetFont SetupPrinter QuickPrint GetY GetX AlignCenter AlignRight AlignLeft PrintHeader PrintFooter PrintPageNum PrintLine CheckPageLen EndOfPage Hope you like it. 10/10/2006 : Included a demo program, and a common dialog example. Re-classified as beginner level code. Happy printing ^.^ Tip: VB can print most object simply by doing a Print obj. Example: Print Picture1
I worked on my last submission, and decided it is now like i want it so I can reupload it. The control created looks like a normal form, with a few differences. GradientFill. Text Alignment. Text Gradient, Text color. Customization of Close, Maximize, Minimize buttons. Moving form, can be disabled. Resizing form, can be disabled. Custom form skins. Remember to build the control before running the application. Don't add a menu to the main form. The form will be redrawn indefinately and starts to eat up your resources. Please don't forget to vote and leave comments. I would like to know whether you think this is a control that I could sell?
This code will open any file with its creator. It is very small and simple... worth a look at. It works on all versions of Windows. Please let me know what you think of it and vote if you like.
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)
This File reading tests compare 3 methodes of reading file. One is using Api, second is using random access file methode and third is using binary file methode. I have tested all and found that using Api is the best and fastest solution for reading files. I have included 3 classes for these 3 methodes and a template project to test them. In my tests, i have used a PIII450mhz, 195MBRam with WinXP Pro. I have read a 20mb file in 1.8seconds.
The program asks for two (or more) files and goes through them sequentially, searching for either differences or similarities, depending on what the user selects. Results are placed into a listbox in either decimal or hex. Useful for figuring out the sturcture of certain files (ie how a small edit changes the file) especially character files for rpg games.
Search Drive for files with a few lines o'code, Recursivly- Please VOTE!!!!