Results for "Category: Files/ File Controls/ Input/ Output"
Get the Serialnumber from your harddisk, cd rom or your disks.
Copy a Folder in another Folder. If the Folder not exists then this program will create the Folder.
This project shows/explains all routines needed to manipulate sections/keys/values within an ini file. It has an intuitive interface, allowing to drag keys between sections, create/delete sections/keys/values, etc, but the routines can also be used individually with other projects. A must have to whom works with INI Files.
This program is a backup program designed for people who need two seperate backups. Initially, i had built this for work, however i figured u guys should see it. It does an hourly backup, as well as a monthly back up...all of which you set. Also, it will save the whole directory and sub directories into the backup folder that you pick. Backup wiz will also allow you to pick network drives!!! Unfortunately, Planet-source-code does not let you put OCX's in zips anymore, so read below about where to find it. I have some webspace just for that ocx that is about an 8 k download
This code is designed for reading text files. i have written this code because i did not want to use the slow "open for input..." and "freefile" bla bla code... I know i coul do this via the richedit control, but i wanted to know how to do it via api, and maybe you to... This code is using the "CreateFile" Api, which must be called differently in windows 2000. Therefore, i added a "IsWin2000" function to check for windows 2000. Update: Now added a class which wraps the module, lot's of events and functionality. it's 50ms slower in read (with my test file) Class module includes also function ReadCharacters which reads the specified ammount of characters from the open file.
Listen to your exes! Write your own wav-files. This program turns any file to a wav.*-file. Learn the wav-header. Feedback please!
Well, my IGCSE mocks just finished yesterday so I was thinking what to do...so just to brush my skills (:D), I made this... We all know what the heck are INI files (if you don't, read their brief description at the bottom)...but did you know that these INI files have a size limit? YES! You see, when you call the Windows API, you will not be able to read files that are bigger than 10kb (on win 9.x i think...correct me if I am wrong) and 64kb on win me/nt/2k. So the next time you try to read a value that is held in position after the 64k/10k mark on a file, all u'll get is a blank (you can do the GetLastError API to see what error was, never tried it though). But HO HO! (look who comes to the rescue) During the past 1 and a half hours (or something), I just wrote a class that will read INI's all by opening them for input and output, and ofcourse, parsing them on their way. So now, throw away ur existing API INI classes and replace these. Features: 1. No more INI File size limit 2. Useful for writing file formats. Yes! For example, I previously wrote an INI script format(crazy idea, huh?) in which some values of keys were actually the names of other keys and in this way, a flow of data can be formed that doesn't have to follow hard-coded format. 3. As fast (well, almost....now, reading a teeny weeny value from a 500kb file that contained 50,000 items took 5 seconds or something on my computer...btw, the file was generated to test the class. Also, there is hardly any noticeable difference between the API and this class even if the file is smaller than 64k). 4. Other features that were included were: Read/Write value (basic INI I/O), Delete a key, Delete the whole darn Section, get all sections (only sectionsuseful for enumerating...file formats!), get all keys with their values all together (useful for enumerating...again file formats!), write values all at once from an array (instead of doing them one by one, which may get slow). 5. It's a drop-in class...just drop and use! very easy parameters to follow :) WHAT INIs ARE: INIs came along with the advent of Windows OSes. They were initially (and, well, still are) are used for storing settings of a program. You can say INI is a standard file format for saving settings (I say standard when I mean Windows standard). Windows supplies APIs that make it easy for us, the developers, to read and write values using just plain strings, which the Windows APIs organises into a format in a file. The format is: 1. There is a section that represents a number of keys (both of which you set) 2. There are keys that represent values (you set the values too) 3. Then there are other sections, 4. with other keys, 5. with other values. 6. blah blah and oh ya, I didn't do an example cuz I think almost everyone might have come across INI files (and anyway, it will take only 3 lines max to write a value to a file using this class) (vote if you like :D...I dont mind, nor do I bite...so criticism [not in a harsh way, mind you] may be appreciated.) Tata!
Here you can make a new folder with just ONE line of code. You decide where you wanna place the folder(like 'c:\New Folder\Sub\'). You don't need any extra OCX's or other kind of controls so just take the code and enjoy it. The code is very useful to me and im sure it will be to you too. /Author
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 rons_xemail@yahoo.com
Directory Tree View. This is an activeX control which which looks like windows explore Folder view. This is to display on you drives in a tree control and and desktop, plus my documents and much more.
This little program lets you alter file dates: date created, date last modified, and date last accessed. Download is just 7.2 kB. Give it a try. Update now lets you also drag'n'drop files onto the app without using the browser.
A Memory Mapped File resides in virtual memory from the moment it is opened until it is closed. This makes access to it very fast, in fact read and write merely consist of data moves in memory. All parts of the file are accessible by means of a zero based offset and the length of the data chunks you can transfer is only limited by the file size itself. The system will swap out and in pages of virtual memory as necessary. Only when you close the file the data are "lazily" written to disc, and the Physical Write Operations are limited to the altered memory pages. When you open an MMF you are required to supply an estimate of how large the file is gonna be. Any reasonable estimate will be fine, however, you cannot exceed this estimate, ie you can't extend a file while it is open, but you can truncate the file size to the actual size used when you close it. You can extend an existing file by giving the appropriate estimate when you open it and truncating it to the larger size when closing. MMFs are byte oriented and that requires a bit of understanding the data types which VB uses and how they are represented physically. The class contains tools however to handle the different aspects.
Demonstrates the use of a property bag to store "things" in a file in any order and to retrieve those things from that file in any order. "Things" include strings, numerics, results of arithmetic or string operations, booleans, fonts and even pictures.
This is a compact code that changes the date of an at the moment hard coded file to the time at the moment.
With this code you can copy all files within a directory with a particular extension to another directory. Actually it will give you a progressive listing of a file with a wildcard and then you can do whatever you want with the file. Extremely simple and straightforward. I dont understand why the other codes are so huge. If you find an error or if you would like to comment please leave a messge.
Stripped code from Dana Seaman's FolderView project. I stripped the project so that the result was only the code that enumerated compressed files. With this code you can view the contents of compressed files (zip, cab, rar, and ace). Note that this code does not compress or uncompress files, it simply enumerates the contents of the compressed files. Also works with shared files over a network. Dana 's original code is at: http://www.planet-source-code.com/xq/ASP/txtCodeId.23292/lngWId.1/qx/vb/scripts/ShowCode.htm All of the code here is Dana's except for the minor stuff like the "Dump to Text File" subroutine and the browsing function. You will notice that there are alot of variables that have been commented out. Those are just the byproducts of the original and bigger project. They were not needed for the compressed file enumeration but i left them in the code. I want to personally thank Dana for such good work.
Gets the correct value for file sizes when the file is large (> ~2.1GB). Basically the file size function included in VB will give a wrong value when used on large files. The traditional way of getting the file size via API will also not work as detailed in the MS article http://support.microsoft.com/default.aspx?scid=kb;en-us;185476. After a bit of research I ended up tweaking the API function to calculate the proper file size. To see the differences, browse to a large file. Let me know if there are any bugs or suggestions to improve performance.
Does anything you want to files in a directory and its subdirectories. For example, if you would like to add MP3's in a directory to a playlist in your MP3 player program, this would be handy for adding all of the files including those residing in subdirectories of that directory.
A program that batch renames files in a folder, based on Adobe Photoshop's batch renaming system.