Results for "Category: Files/ File Controls/ Input/ Output"
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.
After looking all over on PSC i was unable to find Short, Simple and Clean code to get the target path of a window's shortcut (.lnk) file, so here is an easier way.
This code is based on the Windows 95, Windows 98, and Windows 98 Second Edition glitch in file viewing. Be very careful with this tool for if you lock the folder that contains the program, the program will not run. For example if this program is in your C:\Program Files\Lock\ folder and you lock Program Files the program will not run. There a few safety features. First you need to create a shortcut to the EXE (when you compile it or just rem the line in the frmLoad Form_Load section that checks for the Command$). Create a shortcut to the EXE and give it a command line of shortcut. (If you edit the properties of the shortcut file and find the location of the program. at the end of that add "shortcut" without quotes). Next your mouse needs to be in the upper left hand corner of the screen at co-ordinates 0,0. I would suggest giving the shortcut a "hot key" or using the keyboard to open it. Without the command line "shortcut" and the mouse being in the upper left hand corner of the screen the password box will not appear. Now the initial password (default) is "maxx" without the quotes. Once in the program you can change the password. You can always delete the string from the registry and the password will default back to maxx. The file/folder locking feature is due to windows 98se and belows glitch. DOS can read characters windows can not. So by going in dos and using an ALT code to rename a file/folder it will rename it. However windows will not be able to read the alt code and will give the file/folder an underscore. You will not be able to open/explore or delete the locked folder/file. In my program I use the alt code of alt+0254 or chr$(254). If for some reason you mess up a file or folder and the program can not rename it or if you locked the program itself you can manually fix it. Either load a dos prompt or restart in dos. The command used to rename files in DOS is REN or RENAME. The format for ren or rename is the same and goes as follows. REN (Source Path and File Name) (New File Name) for example: REN C:\Clever.txt Smart.txt this will rename the file Clever to Smart. To get rid of the lock you will need to use alt plus the number-pad. Lets say clever was locked. You would need to do this REN C:\Clever(hold alt and press 0254).txt Clever.txt When you hold alt and press 0254 it will insert a box, that is the alt code. When you hit enter the file/folder should be renamed and everything should be okay.
I made Auto File Copy to do a auto backup of a folder and subfolders twice a day to me USB drive, and only copy the new and modified files. All setting is stored in the registry. At 16:55 you can backup 5 GIG’s and only copy the files that have changes. Enjoy and please leave comments and a vote if you like it. Thanks to the two submissions that I borrowed code from (mentioned in code) The zip has been replaced with corrected code.
This program search empty folder from any specified folder or drive.User can remove selected folder and all folder from result.If user want to store a history for management then they can do it from this software i provide copyclip facility
Here is an easy way to bypass the simple and normal progress bar in vb any controll in vb can be a progress bar itself see the code its very easy this is for beginners as well as for some advanced users can be a nice simple example, i place an option controll you can place whatever you like as well ( label, button, shape, line, textbox, etc ) Thx enjoy :)
It mostly reads the information stored in the header of a JPeg file - like when you have downloaded pictures from your camera
This program will load a VB form and allow you to change the name of the controls and all refrences to the control in the body. You can then save the form after editing. Shows the use of ListView.
Record Mouse Movement and Clicks (Mouse Actions) and Save it to File. You can load the Files and Playback it! please vote! thx!
Point This Tool At A Folder And Let It Hunt For That Snippet Of Code For You! If your like me you have a huge library of code stored in a folder somewhere, mostly used for reference for code snippets and examples. The fun part is trying to find that one function you know is there somwhere but arent sure where. Well thats what happened to me one to many times. I created this tool to automate that search, its fast and efficent and uses very little API, mostly just pure vb code. I probably re-invented a wheel with this, but i am seldom happy with other code :) Vote if you find it useful, comment if you find bugs.
Its back an better than ever with the ability to now search through zip files, find that elusive piece of code fast! This could also be modified to make a good general search program for anything else... vote if you find it useful, comment if you find bugs. *Updated 11/26/03*
Simple windows explorer clone, have all the needed functions: files/dirs copy, move, delete or send them to r. bin. Oh yea, and rename too :) ! It is very simple, just to show on how to manage files, or create nice looking file/dirs-view. Pretty easy code...
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
The first procedure scans any directory specified and all its subdirectories and fills an array with all the files found. The other procedure returns the number of files in the directory specified and all its sub directories.
The Shortest way to find a file without API's it built with a few lines in a mudule and a few lines in a form and thats it :) i hope you will like it... If it desire vote feel free and thx for any comments or sugestions .
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.
Shows you some basic commands that you can do with the SendKeys Statement in other Windows applications (Calculator, Solitaire, Notepad). It comes with a Word document that shows you all key codes. You can even have an idea on how to make a fake virus with this one. Please do put some comments or maybe vote if you like this program tutorial.
Hi guys:D after long period of not posting codes iwas a little buzy of aother things, so here iam again and may be many of you see the bYTER on Astalavista or Anticrack.de well the first version and the second soley belong to me, so after many requests of emails i decide to put the source and dedicate it to all of my brothers and sisters here so that many of them will have a look:) What is bYTER: -------------- bYTER is an engine that will compare the original and the cracked file and generate a nice vb source code so that you can copy and paste it directly to your vb IDE the first version was bugged and rubbish for that reason i didnt post it, but this i have made many of new functions as well as fixed many bugs, so take a look and please read the help buit in with the program ... Who can use this: ------------------ I will say and say again the tool and the source code is for free to all, but may the reverse engineering interested people will use it more ... Note ----- I use a nice moduly from a friend in PSCODE greetz to him :D nice one WARN: ------ I am not responsible in any kind or any way for any patcher generated with this tool as well as i wont be bothered from any company or developer ... THE TOOLS IS FOR FREE TEST AND EDUCATION ONLY PLEASE ...
A program that batch renames files in a folder, based on Adobe Photoshop's batch renaming system.
Open any file with its associated application. Just a few lines of code. Please vote.