Results for "Category: Files/ File Controls/ Input/ Output"
This article is solving very common problem when ASP.NET developers wants to get button "clicked" and submit a form when web site visitor hit an Enter key. That is useful when you want to build Login screen, web site search, pool etc.
Lock a folder or file, provided that they are closed before. This technique prevents windows to take the Handle of the file.
Watch Directory (Windows NT4, 2K, XP) Get the folder and subfolder changes detail, without scanning the folder. It uses multithread technology & synchronous function ReadDirectoryChangesW, it is better than FindFirstChangeNotification.
Check to see if a File exists, simple code
Simple synchronize backups and remove duplicates utility Added option to remove empty folders after delete operations v3 adds the option to use file CRCs for exact matching - this helps in situations where time stamps are different when files are still identical. v4 updates the whole project to use the 'W' API functions to preserve unicode. v5 fixes a bug introduced in v4
This module is a wrapper for the unrar.dll freely available from www.rarlab.com Enables unpacking a specified file from a RAR archive, both to disk as a file or only to memory (string variable) as the file text. There are a couple of other posts on RAR archives, and extracting a single file from an archive has not been demonstrated, and I needed this functionality for my ZipSearch project. Thought others might be interested in this functionality - reuse as you see fit. Note that the declares for the library functions are named unrar and unrar3 depending on the version you have. Get a free copy of this DLL from: www.rarlab.com - Extras www.rarlab.com/rar_add.htm - UnRAR.dll ftp://ftp.rarlab.com/rar/UnRARDLL.exe Happy coding :)
FileTime API declares and handy wrapper functions. Bug fix 24 May 09 in FileTimeToDosTime and SysTimeToDosTime funcs.
This is a Kill Folder function with persistence ... It will remove all sub-folders and files and then optionally delete the specified folder ... I found when removing all the files in the temp folder that some locked files would fail and cause it to not continue with the rest of the files ... This function will continue to remove all unlocked files, even after finding locked files. However, if locked files are found, the parent folder will also not get removed.
Makes a XP button for new applications for you who wants to be updated.
Build a rich text editor.
Great code for merging two executables into one, and when you run the new file, both of the programs will run with it, NO API, NO DLL!!! - Base on my project, "FileBinder" Please vote for me...
Did you encounter a "File Locked by Application" or "Unable to Delete file as it is locled by another application" situations? Well this nifty little program will help you unlock and close the file and application so you can Delete,re-edit or do whatever you want again... This app. is a VB console App!!!!
Very fast file wipe and delete application. Selectable overwrite patterns of DOD 5220.22-M standard and the Peter Gutmann overwrite method. This program uses the CreateFile, WriteFile and FlushFileBuffers API. Therefore it is much faster than programs that use the PRINT statement and (in theory) much more secure. Updated GUI with recursive file operations. Please read the ReadMe file!!
This is just a simple remainer from my college dais. It's usefull. It runs in system tray, notify any plannings, navigate on the net, plays sound, multilanguage interface. It has a good grafic. Anyway, enjoy it!
You know how when you download a ZIP file from PSC, the file name becomes a tangled mess such as "[_Cipher_C1865383172005.zip"? This program will let you browse for the folder with your downloaded ZIP files and will rename the ones you select based on the Project Title included in the first line of the PSC_README.... file. It will also display the contents of that readme file without extracting it to disk. ---------------------------------------------------- UPDATE 7/17/2005: removed debug code that prevented compilation ---------------------------------------------------- UPDATE 7/17/2550 4:35 PM: required dll's added in the second zip file. Unzip and register. Also, included the manifest file as a resource (for WinXP Visual Styles compatibility, source is in the Res folder). Thanks to Aly Hirani for pointing out that this project requires a non-standard DLL. ---------------------------------------------------- UPDATE 7/18/2005 10:43 AM : Removed some spaghetti code as suggested by Roger Gilchrist and modified renaming code to remove the Read Only attribute from each file to be renamed. Still thinking about how to implement the part of checking to see that the destination file does not exist and how to deal with that. I also removed all but the latest code backup in order to reduce the size of the download. ---------------------------------------------------- Anybody know how to properly add new lines on the description field? ---------------------------------------------------- UPDATE 7/19/2005 12:38 PM: Implemented both Aly's Suggestions. 1) Unzip32.dll is included in the resource file and will be extracted if it does not already exist (if for some reason you want to alter my resource file and PSC deleted the original unzip32.dll in the Res folder, the DLL file is located on the zip file in that folder) and 2) if a ZIP file contain no @PSC_README*.txt, the project name textbox will state that no readme file was found and if the user tries to rename that file, the program will not allow it (skips over it and at the end states why for all skipped files).
it's an application in which i use text files databse, yes......... when u work on it u feel that u work on a database project, but it's compleately text files database project, you learn soo many of things when you use this project beleave me..........
Thank you for downloading my software from The Planet Source Code website. I hope my software to be helpful to you to get some ideas or to develop it to another software. This code is used to copy all the USB flash disk to a folder on your hard drive which is stated the date and the time of coping process at it's name. It's do the same with all flash disk connected with PC. I used some ideas from codes on planet source code. Many thanks to thos people who I take the code from them. Please if you like it ... vote it !
This is an example of 'SaveText' - 'LoadText' functions for TextBoxes.It is easy to use and works smoothly. I Need your 'FeedBack' and never forget to -Rate- this code.
[ How to set OpenWith??(!) ] - You can launch your software when user clicks on it's document file... like clicking on "*.txt" file will execute "NOTEPAD.exe". For that you need to register your document file extension and set it to be executed with your software. A simple implimentation with very easy to use code!!!. Please compile the code and run the EXE to test it. Good luck!!!, Jim Jose :-))
A simple and useful code... You can make your software AUTO-EXECUTABLE on SYSTEM STARTUP. This code can register the execution path to System's startuplist. You can also ENABLE and DISABLE this feature. You can use the same code to add any other Softwares/File to the startup list.... Any positive response from u is appreciated... Happy coding!!! Jim Jose :-))