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! :)
Find and replace text strings in multiple files within a directory. This allows for wilcards. Please Vote if you like it! :)
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). =)
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!
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.
Opens any file in binary mode and replaces all instances of a specified string with another specified string.
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.
With this program you can give folder its own icon. It works on net disks and floppy disks, too!. Icons can be set from ICO file or extracted from EXE, DLL, ICL, OCX files. Program works with Windows 2000, Windows 98, Windows ME. Definetely check it out. It will make your life a little bit colourful :). And please vote if it does. Any suggestions, improvements & bug reports are also welcome.
(v1.01) -- Some function to manipulate file strings. GetFileName > Returns only the filename -- GetExtension > Returns file extension (optional lowercase) -- GetFileNoExtension (New) > Returns filename without extension -- GetPath > Returns full path. (optional without drive) -- GetDrive > Returns drive (optional include "\") .. Also fixed a horrible bug in the GetFilePath. Screenshot is from v1.0
Simple example of how to select (and retrieve) multiple filenames when using a common-dialog and adding them to a listbox.
This logger has the same functions as most other keyloggers that u get off planetsourcecode but it has a few more useful functions like : · Take A Screenshot Every so many minutes · Log anything the victim does in Hotmail and MSN into its own window (ie. Passwords, or MSN Instant Messages) · This Logger runs in the background and is un-noticeable to the victim. · You can set the logger to pop up a message box every so many minutes · It is disguised as mirc (ie. mIRC password box pops up on startup. If you type runmirc, mirc will run. If you type runlogger, the logger will run) There is probably more stuff, i just don't remember right now.
This will get various statistics of your code. it can scan projects, forms, modules, classes and controls. The informations retreived.. well, just look at the picture. The code is a definate improvement on the last version which only scanned projects, forms and modules. This version can scan classes and controls, plus gets the amount of declared variables, properties and api decalrations. The code itself has also been slightly re-structured for ease in inserting any other files you wish to scan for. Let me know if you have any suggestions, as these improvements were suggested in the feedback from the last version. Any votes are also appreciated :) Thank you.
let the program delete itself ;)
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
This is a fairly simple code that is an alternative to Windows Explorer or My Computer. An example using the DriveListBox, DirListBox and FileListBox, this code was "inspired" by File Browser, uploaded a few days ago. However, I wrote every line of code in it except for the "Error" section, you'll see when you download it. This application distances itself from most, maybe all of the other file browsers on PSC because it enables you to OPEN files from right within the application, by using the Shell ("Start ") API call. This enables you to open all types of files that are associated with an application, not just open specific files. This function does not ALWAYS work, I don't have a clue why not, but if anyone could point out why this is happening, if they could post an UNDERSTANDABLE comment, it would be greatly appreciated. Now, if you think this code is worthy, throw a few positive comments amd votes my way, and bear in mind, I'm 11 and this is in the BEGINNER category. Some of you seem to derive some strange pleaseure from rating beginner code at the intermediate, or even advanced level. I hope this Drive Browser comes in handy or teaches you something!
This is a DEMO Application on Using my FileMapping VB Class Module to Simulate the use of File Mapping APIs Used in Visual C++ and Win32 Assembly, Why in Visual Basic, Why Not? FileMapping Class Module ======================== Tired of using the traditional Visual Basic File Handling Routines, or even FileSystemObject failed to read to a file byte-by-byte, or you want to Access a File Using Pointers for Better Scalability Performance, while Some Anti-Virus Blocks the use of very useful FileSystemObject, File Mapping Functions comes into a handy set of routines just waiting for you to use them, and take note, we people as Visual C++ and Win32 Assembly uses this functions, because we dont have easy macros. Why use easy routines, and limiting your performance, use File Mapping, thats the only way!!! yup, Visual Basic doesn't support Pointer Variables, but there is a CopyMemory "RtlMoveMemory" to do the same effects (a little slower than the real pointers but that will do just fine) Included in this ZIP file is my Class Module to perform FileMapping and a demo Project on how to use the File Mapping by Traversing to an Executable format and checks whether it is a valid Win32 Portable Executable Format and finally checks what type of PE it is, PE32 or PE64 ======================================================================== This code checks for a valid PE Executable Format To understand this Application, you need to consult your nearest PE Documentation. Win32 Assembly Codes are included in Comments are 100% working on TASM32 Compiler, Created by: Chris Vega [[email protected]] http://trider.8m.com