Results for "Category: Files/ File Controls/ Input/ Output"
I've seen requests for this in the mail lists to here it is. This uses the windows scripting runtime to get the path to the requested directory. For example, as you know, the windows directory can be C:\Winnt\ , c:\windows\, etc. This code will retrieve the correct path to the directory. 'Currently written to get the Windows, System32, or Temp directory. Add others as you'd like.
This code demonstrates how to capture keyboard inputs all over windows. A class module is provided, and a 2nd example is provided to capture all keyboard keys, including special keys
This will rename a file in one line of code. Very simple so I do not expect to be voted for but Comments are nice.
Monitor all files in a directory & subdirectories for any change in size, attributes, date, access date, modified date, name, and more. Fixed some missed events from last version, and added a few more. Also, added the ability to check sub directories, and add search filters (*.exe, etc..) Also switched to a class based timer, and api file/directory calls instead of slow dir/fso calls. Special thanks to Dana Seaman for the suggestions and input on this update.
Splits large files into smaller ones.
I made this code because I need to copy an access database with the file open (in use). But, visual basic FileCopy method and windows apis for this pourpose fails in this case with the "File Access Error". So, I made this function that copy the file in blocks. You can alter the block size so the copy can be faster or slower. Well, thats it. I hope that this code can be useful to anyone! Ah, the error handle was generated with Ax-Tools CodeSmart 2001, an excelent Add-In for any visual basic programmer! Recommended! :) www.axtools.com
This boolean function simply reads in two files and compares them to see if they are the same. It returns true if they are and false if they aren't. I quickly wrote this up to compare text files against template files.
Determines if a file is old. I use this when I loop through the files in a "temp" directory to determine if I should delete old files on a website. Take note - the function looks at the last modified date rather then the date created.
Uses a text box as the search field the letters you enter are the changes represented in the FileList Box. There are a number of code snipets included for testing. Haven't seen this around I made it cause i needed a way to quickly search the long list of code snipets i was getting and had stored in a single folder.Could also be used with the dirListBox to search as you clicked on a new directory.
reads a file line by line and parses data using a delimiter fron each line into relevent collums in a listview. oops sorry forgot a delete but you guys can do that as im doing something else at the moment.
Retrieves and set's a Link File's(.lnk) attributes(Target, Directory, Description, Icon Path, Icon Index, .ect..). This project was requested by Lawrence.
BartNet Explorer is a bit like Windows explorer. It uses the Microsoft Scripting Runtime reference to find the files and folders. Some options include changing views, creating new folders, viewing file and folder information and refresh view.
Two pre made forms (Tab Strip and a dir select) ready to put into your apps from the VB project window. Form1 = 31 lines of code giving you a 6 window Tab form to start working with. Form2 = 13 lines of code giving complete access to you file system with minimum code. Just unZip to your forms file which by default would be somthing like "C:\Program Files\Microsoft Visual Studio\VB98\Template\Forms" then launch VB and add a form you will find them their. Saves me ages, I do have other forms but will only add them if people vote for these. JP keep on coding.
An Example how to use and create hotkeys If you Download, Please rate it first. You can do me a favour if you do that! Thanks.
Receives keystrokes from user, including mouse buttons and all keys. Writes all input to a text file and can be hidden in stealth mode! ONLY ONE API CALL WITH EASY TO FOLLOW CODE! Votes and comments are strongly encouraged and appreciated.
Make your icons. This is a test, the real one likes just like this one. Have PhUn!
Manda emails masivos, en varios formatos con attachments.Exelente Programa (No Bugs)
If you would prefer not to fool around with the Windows Registry, you can save a user's options in a random access file instead. Random access files are fast (much faster than database files) and allow you to organize the user uptions as database-like records that may be accessed separately from one another. You can overwrite a single record without affecting or even needing to read the others. This code also shows how to give the user a right-click option to change the size of or hide the toolbar. Finally, it shows an optional splash screen. If your users hate splash screens (most do), but your graphic artist insists that you include one, give the user the option of shutting it off. Note: You need the icons included in this zip file for this code to run right.
This is second upload of this app, after I fixed some bugs... This program is searching for a specified file, you can use all the wild card combinations I personaly know of like * ? and just regular file names, from what I've seen its also does this pretty quickly. Hope you all like it :).
This code will make an executable file from your visual basic project (vbp file) without having to go to Visual Basic and select Make exe. It's a part of a bigger program i am working on, program that i will post here on psc as long as i will finish. The reason why i'm submitting this code it's to demonstrate the capabilities of shellexecute and the /make switch of visual basic.