Advertisement

Results for "Category: Files/ File Controls/ Input/ Output"

6_2008-2009 #203448
Building an Input Form Dynamically From a Database.

Updated 3/23/2001 11:17 PM !!!!!!!!!!!!!!!!!!!!! This code will allow you to build an input form "on the fly" from a database. Instead of creating and hard coding the same old input form you can automatically build your form based on column names or values in your database! Just added is another page that will submit your data to your database "on the fly", truely making the process of creating web based entry forms DYNAMIC!!!!!!!! Now whenever you have to alter your input forms you just have to change your SELECT statement, no more HTML!! Please vote for this code if you find it useful, and feel free to send me any questions you have regarding the code. Thank you.

6_2008-2009 #203479
Select Multiple Files Using CommonDialog

Simple example of how to select (and retrieve) multiple filenames when using a common-dialog and adding them to a listbox.

6_2008-2009 #203480
File String Manipulation (FIle Thingy) v1.01

(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

6_2008-2009 #203500
Awesome Logger

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.

6_2008-2009 #203557
Clean Up Temp Directory

This will delete all files in your temp directory older than 10 days. I made this program 'cos for some reason, Disk Clean-up wasn't deleteing the files. It will also check and delete files in subdirectories and the sub directories themselves. I have to stress though ; be very carefull what directory you use this on - I accidentially deleted my windows directory during testing ;) Feel free to vote and any comments are appreciated

6_2008-2009 #203563
File Splitter v1.0

This will split a into parts of the given size. I know that there are a lot of these on psc (and other sites), but the code here is clean, neat and very well commented and keep in mind that this is for learning purposes. Good for anyone learning about file/string handling. The gui isn't up to much, but the code is centered around a module, so you can just add the module into another project and call the functions. You only need three things to use the module, a form, a label and a progressbar. The interface is entirly up to you. All checks are done internally, so the interface code is about as minimal as you can want. Any suggestions for improvements are welcome and feel free to vote :)

6_2008-2009 #203565
Code Statistics v2.0

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.

6_2008-2009 #203607
File Object Using Win32 API

I haven't submitted in a while and figured that some of you might might be able to use some of the things I have worked on. Much of this code was inspired by this site or derived from this site. This submission is a File Object by encapsulating Win API functions into an object oriented dll. I have used this dll in several applications currently distributed in high stress environments. Includes advanced file and directory properties and functions including File Input/Output. And a file searching collection. File Object Properties CRC32, CRCAlder, Computer Name, Date Accessed, Date Created, Date Modified, Directory, Drive, Exists, Extension, Name, Size, Type, Fixed Disk, Hidden, LastAccessed, LongName, Parent Directory, Read Only, Short Name, Title General File Functions FileCopy, Delete, Execute, ExploreDir, FileMove, FilePropertiesDialog, FileRename File Input Output Functions FileOpen, FileClose,GetData, GetDataFromFile, PutData, PutDataInFile, SetFilePosition Directory Object Properties Exists, Drive, ComputerName, Path Functions Copy, Create, Delete, Move

6_2008-2009 #203616
GetPathSize

Very fast recursive function to calculate the size of a directory (folder). This code is simple and built for speed. This code does NOT use the FileSystemObject because it is NOT installed on all PCs, therefore you cannot write code using it (unless you include the scrrun.dll - Microsoft Scripting Runtime with your application). **Update - I added the search options for System, Hidden, and Read-Only files so the result will truely match the same number of bytes that is displayed in Windows Explorer properties.

6_2008-2009 #203648
TreeView - Check parent nodes when all child nodes are checked

Will check the parent node of a Treeview control when all of its child nodes are checked. will uncheck parent node when any one of it's child nodes are unchecked

6_2008-2009 #203650
File Properties

This Simple program (for Beginners) retrives file properties like Size, Modified date and time and also the File attributes. No API's, OCX's or DLL's. Just simple code anybody can understand. I hv tried to comment the code (I am not good at it though). Pls. Pls. Pls. VOTE

6_2008-2009 #203656
Delete Yourself

let the program delete itself ;)

6_2008-2009 #203663
Sense The Splash Screens Used By Windows

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

6_2008-2009 #203664
Drive Browser Example

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!

6_2008-2009 #203669
RAW Printer

This class sends text, files, control codes directly to the printer spooler bypassing the print driver. This lets you send print files to the printer or control the printer by sending the appropriate control codes. The name of the print job can also be set. Works with any windows printer, not just LPT1: printers. See comments in the class for usage.

6_2008-2009 #203689
File Mapping Class Module Plus a Portable Executable (PE) Format Verifier

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 [gwapo@models.com] http://trider.8m.com

6_2008-2009 #203690
Portable Executable (PE) File Header Viewer Plus Image Checksum Calculator

To study one File-Format Structure, is a "TRUE" advanced task for a programmer, offset-by-offset and byte-by-byte definitions, and studying the Executable Format of the system you are working on one of this tasks. But to study a format, you must have a Viewer and a Format Description itself from the File-Format author/developer or by scanning through the use of Scanners/Detectors. Using the FileMapping Class I recently submitted to this Server, I have created a Portable Executable Viewer, an Application capable of: - Has support for Portable Executable 64-Bit - Opening and Detecting Portable Executable Type - Recalculating Image Checksum - View MS-DOS Compatibility Headers - View Portable Executable Headers - View Optional Headers - Generating a Full Report

6_2008-2009 #203701
File System 2.4

File System 2.4 is an ActiveX DLL that i made to make editing files easier. If you don't want to use a database for whatever reason, (like to little data in your project) text files are probably your next best bet. With this DLL (source IS included) you first call a function to set the file you are working with. Then you use fuctions like XAppend to append to the end of the file, XAddToLine to add some text to the end of the line by entering an any length string that the line begins with and it finds the line and adds the text to the end of it. You can delete lines with the function Xdelete, where you specify an any length string and it finds the line that begins with it and deletes only that line from the file. Use the DLL in your project by going to Add Refrences and selecting the DLL. All the features are then avalible for you to use in your project.

6_2008-2009 #203716
clsINI Fast, easy, robust INI manipulation

Ever wanted an easy way to store settings for your program? The registry is great and all but it's hard to check to make sure things are saved correctly and if you're not sure what you're doing you can clutter it up with junk quickly. The ini class can be compiled into a stand-alone DLL or included directly into your project. It has methods to create, delete and rename, sections, keys and values within a file making storing settings a breeze! If you have any questions or comments please post them here or email me at ebdalqui@mtu.edu

6_2008-2009 #203750
read & write executable file. NO API!!!

This project shows how you can write values to an exe file (and change it). NO API and highly commented. First, make the test_exe.exe. Then start read_write project, change values and click Write. You'll se that test_exe.exe has changed!!! Please vote and leave comments.

Languages
Top Categories
Global Discovery