Results for "Category: Files/ File Controls/ Input/ Output"
Well I have searched PSC in search on how to make a trainer, but none of them where comented enough, to tell how to do it. So I made this so you can learn from it. It is easy basic trainer making code. But I am working on a SD3 one but it is going to be awhile before it is done. Since it has Virtualy everything changable to be changed. The Tenchi Muyo RPG is to be used when in battle.
First things first, this is just something simple, you need to rename cmd.exe.000 to cmd.exe that is the same as any cmd or command file you will get off of a computer. Next you need to make sure that you register the redirect.dll or this will not work, I repeat this will not work. This is a proof of concept that you can use a vb app to talk to a dos window and not only that but read what is sent back in the vb app. If you would like to replace the cmd.exe with your own command file that is fine but please make the appropriate changes in the app to show where that cmd.exe or command.exe is located on your computer. You can see the source to that dll in the dll.source folder, although that is written in c++ by (unknown) but whoever they are, they did a great job..
This is a modified version of "Incremental Backup" found here at PSC. This program allows one to backup from a folder and its subfolders to another folder, building destination folder structures where needed. The code checks for date last modified and only backs up newer files. This is much quicker than a "copy and paste". Vestigial files will remain in the backup folder and this can be very useful. Thanks to other PSC contributors including Pietro Cecchi whose .bas module I used. I have used a MSFlexGrid control to hold the file list, which means one may queue tens of thousands of files for backup (superior to the ListBox control); one may also now resize the form, pause execution, and limit screen refresh to help speed up file backup.
Trys to rename zip file to their submission name. eg. CODE_UPLOAD105511092000.zip TOO projectIRC build 47.zip Bugs: There are many *Sometimes adds last zip file twice *Cannot rename files with certain charaters eg _ *Errors when there are more then 1 txt file in the zip *Relys on the timer for zip operations 5sec works for my computer may need slower for slower machines. Maybe others Instructions: * Make a copy of a few zip files from pscode and put in a folder * Point the text box to ur directory (must end with "\" * Click "Get Zipfiles" * Wait until finished * Click "rename files" Needs: MS scripting Winzip Plz help this project it is so you don't have to go through each one and rename. ************************************************* Updated: All bugs fixed except for when there are multiple txt files in the zip. Plz if you have any suggestion on how to only get the txt files that start with "@" plz submit feedback or email me. Thankyou to Roger Gilchrist for his RStrip and LStrip functions :) New version at: http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=49691&lngWId=1
This code allows a user to add security to a folder by either making it password protected or not allowing access at all. It includes a simple method of encryption and decryption, shows how to creat a shortcut for your program's executable, shows methods to hide your pogram for the task manager (ctrl+alt+del), disable the task manager, and disable the taskbar or startmenu. It also includes a log which can be set to record all secured folders attempted to be opened or just any folders that are opened and includes time and date of when they are opened. Also includes a method of detecting when a key and what key has been pressed. And... yeah theres alot of stuff so enjoy and please vote!
This will search inside files for a string. Useful if you need to save on disk a list of files. It can search in any kind of file, but if you try with compiled ones (exes, dll) or zipped ones, it will most likely not find what you're looking for...
Lets you rename mass amout of files in a flash! u can customise the new filenames with numbers and it can also grab id3 tags from mp3 files making things that much easier. Please Vote :p
With this program you can join many files as you want, ideal to make a movie from movie clips. or to join music files into one file. or any other type of data that you want to join. Please vote and leave your comments. Thanx :o).
also goes to systray and creates a .txt file to hdd with the log, did it to keep an eye on what pages my kids where visiting, you never know what they are upto lol.
will check and log if internet is open/closed and which sites are visited. updated so it will find the urls no matter how many windows are open and you can open the urls by dblclicking the item in the listbox.
This is fairly simple code and its well documented. When this program is run it just continually generates a random name and makes a file in the c:\windows dir. There is a part where you can add more lines to make the file output is even larger. So check it out. BTW don't test on yourself, I did. IT created over 1600 files in 3seconds
Deletes Multiple Files at one time. It uses Drag and Drop to put the files into a listbox. If you have any questions about this program just email me at ourgroup@sprint.ca . I'd appreciate any feedback and please take the time to vote if you find this of any use. Thank You Very Much
This code consists of 2 Function (ReadFile and WriteFile). All you have to do is Point ReadFile to a filepath and it will return the text within that file. Write file recieves a filepath and the string value to save to it. They include simple error handling..and can easily and quickly be advanced to handle open and save dialogs.
Acess files and execute them if you like than please vote......
This File reading tests compare 3 methodes of reading file. One is using Api, second is using random access file methode and third is using binary file methode. I have tested all and found that using Api is the best and fastest solution for reading files. I have included 3 classes for these 3 methodes and a template project to test them. In my tests, i have used a PIII450mhz, 195MBRam with WinXP Pro. I have read a 20mb file in 1.8seconds.
Create a toolbar/statusbar in a dialog. To add a control bar to a dialog, you must create the control bar as usual, and then make room for the control bar within the client area of the dialog. For the control bar to function properly, the dialog must duplicate some of the functionality of frame windows. If you want ON_UPDATE_COMMAND_UI handlers to work for the control bars, you also need to derive new control bar classes, and handle the WM_IDLEUPDATECMDUI message. If your dialog is not the main window of your application, you will also need to modify its parent frame window to pass the WM_IDLEUPDATECMDUI message on to the dialog's control bars. To make room for a control bar within the client area of the dialog, follow these steps in your dialog's OnInitDialog() function: http://stingsoft.com/mfc_faq/chapter6/chapter6_5.htm
Get you a easy way for creating and using timers on your window application. This code use two timers and you can see how to start and stop the timer.
This code illustrates the use of the combo box control with no MFC.
This will make a Form Transparent according to a Pixel of it's Picture. Be patient with me as I am learning how to code in C++. This code was ported from a project in VB by Chris Yates. However VB is horribly slow so I thought I'd make a Dll in C++ that did the same. Here's the result
Well, want to ACTUALLY create your own form? no MFC or Resources. This is code to actually make a raw form. easy to use. Please gimme feed back.