Results for "Category: Files/ File Controls/ Input/ Output"
My coworker programs Access databases that pull information from an Oracle database. The front-ends of these databases need modifications on a regular basis. Since all the front end master files are kept in a single folder on one computer, and all the clients have the frontends in the same location locally (to reduce network traffic), he asked me to come up with a way to automatically check the modification date of the client files against the master files to make sure the clients were all running the most recent frontends. This is my first submission to PSC, so be gentle! Please vote!!
This application update your application with a FTP site, (like Norton). The application compare the local and FTP date of the files and update only if FTP was more recent. No component, no OCX, just API You must See !!
I use these two classes to encapsulate a whole host of file oriented API calls... allowing me treat files as objects in my code and with the speed that is gained by going through the API. The clsFile class wraps around a single file, and exposes a whole host of properties of a file (and the volume it is on) including: 16 bit equivalent path, parsed filename, size, attributes (readonly, system, archive, etc), dates (created, accessed, and modified) and volume properties: label, serial no., is a cdrom, fixed disk, remote, network path, unc info, etc. (see the screen shot for the full list). Besides being a read only property class, I have modified the .Attributes enum and the .DateLastModified properties to allow changes... so that when you change the properties on the class, the corresponding properties on the file are modified. Eventually, this class could also be modified to extend functions such as Rename, Delete, Copy and Move that would work through the Windows Shell. I have the code to do this, but never bothered patching it in since in my coding, I never ran into the situation where I needed to do these actions with the file object by itself. The colFiles class acts as a collection for the clsFile class. In addition to the methods you would expect from a collection, this class also encapsulates the API functions for file searching (including recursive directory searches). If you EVER intend to use a file search in your applications, going through the API is the ONLY way to achieve this in my opinion. You'll find many examples that try to use directory list boxes to perform file scans, but these examples will be painfully slow. The API, on the other hand, is extremely fast. As fast as the built in Find/Search screen in Windows Explorer. Plus... you are able to search through paths other than your mapped drives. This covers the entire Windows Explorer directory tree (network drives, namespace extensions, etc). Don't judge this class by the screen shots before knowing that in the screen shot example, I was searching across my network which consists of a slow 10Mb hub. You'll have to try it for yourself on your set up to see why I swear by these two classes when performing seek and file property operations. For updates to this or other cool vb code or controls, check my web page: http://members.tripod.com/thefrogprince/ If you are not currently involved in the coding contest, I WOULD REALLY APPRECIATE YOU VOTING FOR MY CODE. Will only take a minute or two to make an account, and while it won't make me any money... =) it will encourage me to keep posting good quality code and controls like this one. (check out my other posts too). =)
After you have read my tutorial on adding a registry entry no doubt now you will want to be able to remove it as well.
If you have ever needed to have your program start at the same time as windows starts without putting the program into the start up menu but have been unable to figure out how to do it then just follow the following text.
-v-(updated)-v- I have added a few other needed files that a few submissions have asked for, I will probably put out a better version without any bugs as soon as it is fully tested. Thank you for your input for those that have checked out my code and thank you for voting. For those that have seen the code, it is quite unique, eh? This code will search through your computer for the specified files you type, and will list any files (with paths) as they appear. If coded properly you can use this code to make some type of shell program for later use, or....well....use your imagination. Since i have not seen this posted yet, nor have i ever seen anyone actually do it, i decided to make this my first post. If you like it, use it, But please give me credit by putting me in your greets or something. Or if you make a program i would love to see how this code enhanced it in any way. Thank you
A different kind of INI because I don't like the ini's that are so easy to use! example: @ Header1, Value1 @ Header2, Value2 @ Header3, Value3 @ Header4, Value4
This code will save values for TextBox, CheckBox, ListBox, ComboBox, OptionButton, and MultiLine TextBoxes with no problem. It demonstrates using the controls collection to go through all controls contained on a form and save their values. It also has an error handler that gives abort, Retry and ignore options on errors. It uses conditional compilation to help with debugging by printing values to the debug window. This behavior can be changed by changing #const debugmode to 0. The file will automatically be saved in the same directory as your application and will contain the forms name with an extenstion of .set.
Extracts all dependency information (.dll's and .ocx's) from an executable, and returns the information in a listbox. Also has the option of saving the information to a comma-delimited file.
This example shows you how to setup a StatusBar through code. It also uses the ContextMenu, Timer and MainMenu controls. The timer give you dynamic time in the StatusBar.
This class gets around the problem of VB.NET not having control arrays. It also gets around the problem of not being able to declare arrays of WithEvents variables. Zip file contains example program and documentation. If you like this code, please vote. Please let me know if you have any suggestions, or know of an easier way of doing this.
Opens any file in binary mode and replaces all instances of a specified string with another specified string.
This code will generate a HTML-code with a VbScript MsgBox, after setting a few things like Message title, icon or when the MsgBox should be invoked. Just execute this HTML file to generate a MsgBox (beginners) or look at the source to see the way I let had the MsgBox created by the form.
This allows you to change the system date time stamp on your files. It was written just to make the files we send out to users look a little neater, all with the same date and time.
This is code for a dynamically created, sortable, pageable HTML table, this is a pretty stripped down version. Real simple, just call the procedure where you want the table, pass it a connection object and a SQL string, it will create an ADO recordset and fill it into an HTML table, it will be fully pageable and sortable by clicking the column head. You can also have the values in one column linkable to another page,(example being you have an offer number and you click it to go to a details page) You input the records per page, default sort order, and the HTML tables attributes. This can be easily made to incorporate images for column heads and for navigation buttons(maybe i'll post that later if this get a good response) Please email me with any questions.
A small app that demonstrates the use of accelerators. (Win32 api code, no MFC or VCL)
How to use 'Regions' to create different shaped windows.
Demonstrates how to make a hyperlink, no subclassing or mouse capturing, and the result is a proper looking hyperlink...really easy! Also includes a statusbar if anyone's interested. (win32 API code, heaps of comments)
Simple Win32 program to demonstrate the shell 'Select Directory' browse dialog. This is useful when you want the user to select a directory, rather than a specific file. It is not as well documented as the 'Open File' common dialog in the win32 help. It took me a while to find it.
Cleans up and renames your mp3s to a specific format, example: "[Artist] Songtitle.mp3". Option to pull artist and title info from the ID3 tag if one exists, and to update your ID3 tags with the new properly formatted Artist and Title.