Advertisement

Results for "Category: Files/ File Controls/ Input/ Output"

ASP_Volume2 #32066
Save / Write contents of a listbox to a textfile

Save /Write contents of a listbox to a textfile

ASP_Volume2 #32075
Copy files in directory - Extremely simple!!

With this code you can copy all files within a directory with a particular extension to another directory. Actually it will give you a progressive listing of a file with a wildcard and then you can do whatever you want with the file. Extremely simple and straightforward. I dont understand why the other codes are so huge. If you find an error or if you would like to comment please leave a messge.

ASP_Volume2 #32123
file association within a program (Flash Player Example))

This little number will help you understand the idea of having a file association like notepad, wordpad or any other program that if you click the data file it will launch the program and open the file. This one will play macromedia flash files, plus also has an auto resizer so that you can grow and shrink the window, and the information inside will do so as well.

ASP_Volume2 #32127
Relative Path Function <BR><SMALL>Gets the relative path of a file w.r.t. a directory</SMALL>

A reusable function that computes the relative path of a file with respect to a given directory Examples will make the point clear, so here goes: GetRelativePath ("C:\VB\", "C:\VB\File.ext") returns "File.ext" GetRelativePath ("C:\VB\", "C:\VB\Program\File.ext") returns "Program\File.ext" GetRelativePath ("C:\VB\", "C:\File.ext") returns "..\File.ext" It is useful to insert images and hyperlinks into webpages, given the filenames of the images and the HTML file.

ASP_Volume2 #32162
Download manager

This code will tell you how long it will take to download a file just put in the Size and speed it will do the rest

ASP_Volume2 #32174
A TRUE Windows Prompt Like Dos (no controls)

Haven't seen it done yet until I did it myself. I asked around if there was code to create a 'prompt' and all I seen was modifed multi-line boxes. This is not a Dos window, its a windows window. - this is as real as it gets... If you need a GUI windows command prompt... here it is, Best WINDOWS command line code here... Please: I am going to use this code for a Business Basic interpreter, if you find any bugs or make it better, please let me know!!! I am always looking for improvement here!! Code is FREE for all...

ASP_Volume2 #32241
New type of INI

A different kind of INI because I don't like the ini's that are so easy to use! example: @ Header1, Value1 @ Header2, Value2 @ Header3, Value3 @ Header4, Value4

ASP_Volume2 #32267
RecurseFolderList

This code is a modified version of ShowFolderList by Bruce Lindsay. (Thanx !!) This code will recursively parse a directory defined by an path parameter. My aim was to work around the non-recursive nature of the dir function. Bruce's original code does that to one folder/child level. Mine now returns everything below a given path. You can still use getattr to define Folder or File attributes.

ASP_Volume2 #32269
cFindFile - A Windows API wrapper for FindNext

This is a wrapper class for the FindNext functions. The FindNext, and related functions, allow the searching of a drive for a given file. Wild cards are supported as are UNC and long file names. It returns a string array, to n-tier enable it. It was also designed for reusability at the source code level. It is currently used by a number (5+) of production applications (in it's current form). For more details and a usage example, please see the Declarations section of the class.

ASP_Volume2 #32273
Bit IO

This module allows you to view a file as a collection of bits rather than as a collection of bytes. It allows you to read/write a single bit at a time or read/write up to 32 bits at once.

ASP_Volume2 #32307
Active Self-Extract

With this code, you can incorporate self-extract functions to your VB program. You can actually add a compressed file, with you own custom compression algorithm to a EXE, so you can extract it just by running your program (just like WinZip's SFX modules), you can save your application's setting in it's executable(so you don't use the registry, or INI files), you can even put the registration information inside the exe(for safety), so you don't use external text files, or just put a DOC file inside an exe so a user can see it's contens even if it doesn't have Microsoft Word. This are only examples, but the posibilities are UNLIMITED. You can implement this to your program just by adding 2 functions, and calling them. By the way, it should work with almost any VB version. Included is a sample app, that shows a sample Self-Extract maker (which can include any file in the Self-Extract module, which is a VB app), and a Self-Extracting module, and of course, source code. Enjoy! P.S. If you include a zip into the Self-Extract module, some uncompressing programs will think it's a SFX, and you can decompress the files with them! (tested with WinRAR -- will say that the zip has a bad header, but will decompress the files!)

ASP_Volume2 #32315
PathExists%

Determine if a directory exists. It is a variation of the Planet-Source-Code function I borrowed called 'FileExists that always works'.

ASP_Volume2 #32323
Comma De-Limited

This code will read a file line by line and create a comma delimited text file which can then be imported into Excel.

ASP_Volume2 #32324
Using the Browse Folder Dialog Box

You may have noticed that in Windows the Browse Folder dialog is used in may programs, even the shell if you have used the find program you can choose browse and the folder below appears.WITH NO NEED FOR MODULES!!! You can implement this dialog bow into your applications very easily by using the following API calls. SHBrowseForFolder SHGetPathFromIDList lstrcat

ASP_Volume2 #32390
[- FragIt -] It means it!

This is a MUST HAVE program. It does what it sounds. It splits a file into several fragment files of a given size. It also can merge those fragment files in the original file without loosing any data. COOL! isn't it??!

ASP_Volume2 #32421
[ FragIt v1.1 ]- It is now more enhanced and, safe and more reliable in both spliting and merging.

FragIt is now more enhanced and more reliable. Including safe data handling and in this release the fraging (splitting) limit is broken, means you can now break a file into unlimited fragments. You can control the fragment file number with the fragment size only and nothing else. Don't lose focus on the new on-the-fly canceling option. Now for the unlimited fraging capability you might end up fraging your 2MB file into 2097152 fragments and it really takes a while. When you hit the Initialize button it changes into cancel button. So using this new cancel option you can cancel both split and merge actions on-the-fly and there is no data lose! Cool Hah? It would be nice if you VOTE for me. There is a lot of hard work involved in this project.

ASP_Volume2 #32433
ReadWriteIniFiles

Read and write INI-files.

ASP_Volume2 #32467
Save/Load Text to a listbox with common dialog

No example on psc for this so I put it together for others; LOAD and SAVE text to and from a listbox using common dialog control..

ASP_Volume2 #32520
Convert Text Document to HTML

This routine will allow you to convert any text document into an HTML document. This is a basic function that simply puts the template HTML tags into place and then adds line breaks after each line of the text file is read in. This would be handy function for converting large numbers of documents to web-format. This code would be used as following: Call FileToHTML("c:\autoexec.bat", "c:\test.html", "Auto Execute File", "maroon", "white")

ASP_Volume2 #32538
Backup Wiz

This program is a backup program designed for people who need two seperate backups. Initially, i had built this for work, however i figured u guys should see it. It does an hourly backup, as well as a monthly back up...all of which you set. Also, it will save the whole directory and sub directories into the backup folder that you pick. Backup wiz will also allow you to pick network drives!!! Unfortunately, Planet-source-code does not let you put OCX's in zips anymore, so read below about where to find it. I have some webspace just for that ocx that is about an 8 k download

Languages
Top Categories
Global Discovery