Results for "Category: Files/ File Controls/ Input/ Output"
I wrote this prgram to augment MRTG (Multi Router Traffic Grapher). Each night i generate new configuration files for all my routers, when that finishes this program combines all the files into one primary configuration file. Please Vote if you like it! :)
I created this control because i couldnt find anything else that created a multi-colum combo(drop down) box. This control is driven off a database query and is fairly straight forward to use. Once you have extracted the zip file into a directory you can look at the file /structure.txt. This file explains the directory structure and where everything is located. I hope you enjoy the control, i know i have seen numerous requests for one. And remember; Please vote! Thank You :) Purpose: The purpose of this widget is: 1. provide a multi column drop down box to users 2. provide a combo box's that doesnt sit on the top of a web browser so menus can flow over the control 3. provide a combo box that can allow user input
I have been using this for some time now to draw my Hierarchical Data Grids in asp. Based on the intrest in Hierarchical Data Grids i decided to post it for other to benefit from. I used the same msdn artcle to base the sample on. The server side is written in vbscript and the client side functionality is written in javascript. To change the display all that is required is a valid SHAPE statement. The display is handled by a single function call drawHierTable(oRS, iLevel, sParent, itCounter, clrMainRow, clrAltRow)
UPDATED 11/4/3002 -- This code is used to create a tab control similar to the tabbed dialog control in vb, it comes in very handy when you have alot of information to display but no room to put it. You simply add the tabbed dilaog and organize everything into sections. With a couple lines of code you can add a tabbed dialog control to anything you wish. The tab control can create static tabs(HTML) or DHTML!!! This has been written in vbscript for the server and javascript for functionality at the client. In addition, when navigating the mouse over the tabs the mouse over will change the backgound image to a selection. The style used was from Windows XP. 11/4/2003 - Updated all the graphics from jpg to gif with transparency. Added a selected tab option to the dynamic tabs. It will now be driven off the tab that is passed in the function call. Added the photoshop files for the graphics so you can change the colors and style to suit your site. I included a few samples of other colors. Last i cleaned up the jump page for the sample, it looked plain. :) Even though the contest is over, I would appreciate your taking the time to vote! Thanks Tom
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)