Results for "Category: Files/ File Controls/ Input/ Output"
Update of my old code, does the samething just explained Also Demain Net riped my code and put it in there program u can see this because my post was done before they updated there U can get my old code here http://www.planet-source-code.com/xq/ASP/txtCodeId.12096/lngWId.1/qx/vb/scripts/ShowCode.htm This code is a must for people making mp3 players etc everyone should have this code Tip: Make your CommonDialog Box max file size "9999" If you think this code is good (and it is) please vote for me
This code will create an internet shortcut on someone's computer. All you have to do it call it with a path and hyperlink!
With a small bit of coding, you can modify this app to suit your office server environment as a fully function FAX SERVER. You MUST be running WINDOWS 2000 / WINDOWS NT, as these are the only two OS's that have the FAX SERVER Object.
Demonstrates the use of recursion to retreive the files in a folder. Code is in two mudules...one demonstrates the Windows API's to open a browse folder dialog box to select a folder, the other contains the code to list all of the files in the directory selected, including files in all subfolders. Code is well documented.
Source code for a program that will insert binary or ascii files into an executable or any file really. Also generates [VB] code to extract the file.
generate two batch files (one to register, one to unregister) that manage dlls/ocxs in a dev branch. the batch files execute and give the line number of a failed registry event. this is a two minute script that saves me time in trying to see what new dlls/ocxs were added/deleted...hope it is useful to all.
English version of my Imenik application Connects VB and Access
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
This is an update to synchronize. This has the missing timestamp code, and if file exist code. It still synchronize two directories files. Making them duplicates of each other. Supports UNC naming.
Empties the Recycle Bin, regardless of what drive/folder assigned to.
Check if that directory exists before running the risk of an error and/or data loss. One of the few that really works. No API, no function calls. Existence check and logic included. Incredibly simple.
This Will Return The Command Line Options That Your Program Was Run With EX if a person used a command line to run yourapp.exe /option then mycommandline would return /option PLUS IT'S ONLY 1 Line Of Code
VOTE FOR ME PLEASE! SIMPLE CODE to use with resource files. With one line of code, you will load text strings and images from a resource file WITH NO API CALLS.
Will put parsed XML into a TreeView control.
This code can be made to take a certain chunk of your choice from a file. Mainly for making resumable downloads etc, or working on a patch for a program... I made this cos im working on a file sharing program that downloads from multiple sources. SERVERAL UPDATES HAVE TAKEN PLACE (thanks to guys who posted comments improving the code)
I made this project after reading a paper about asm. they were talking about how programers were amazzed to find out that a program will still run even when appended by another. then they took it to the next step, prepending an still getting it to work. then an even greater step, filling the programs white space up with code and running the program + the code that filled the white space without any errors. i got it to work in asm and wondered if there was any way to get any kind of prepend, append, or white space fill effect in a vb writen app. all i got was the prepend. append only worked if i knew what compiler made the program (masm hehehe, not vb6 or vc++...sorry lads).
Replaces text in a file with different text. Form has two three text boxes: Search String Box, Replace String Box, File to Search Box. The file will be searchd for the search string and if found the file will be updated with the changes. (Note the entire file will be re-written)
Have you ever tried to send raw data to a printer port (LPT1 for example) using Visual Basic without using VB's printer object or an outside DLL or API? If you have then you know that it is virtually impossible because Visual Basic cannot directly access any system devices. This very simple code demonstrates how to use an undocumented feature of VB's 'OPEN' statement to allow direct access to the printer port as if it were a file. Accessing system devices as if they were a file is a method that was built into the old DOS-based versions of Basic, but until now I was unaware that this functionality still exists in Visual Basic. This method even works in Windows 2000, which is supposed to block direct port access for security purposes.
This is an event driven VB user control to handle serial COM communications. Instead of using the default ocx you can now compile this user control with your code and you don't need to supply any extra ocx's or third party dll's to support serial comm's.
Reads / Loads contents of a textfile into a listbox