Advertisement

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

6_2008-2009 #195581
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.

6_2008-2009 #195582
RecurseDir2

Example of File System Object implementation...

6_2008-2009 #195585
sndPlayer MP3 MIDI WAV etc Calls

'This simple piece of source code will 'show you how to call and play Mp3, 'Mpeg, Midi and Wav files without 'using any extra controls. Simple and 'easy. Yeah what more would you want, 'well some extra buttons but they 'will be coming soon.

6_2008-2009 #195588
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.

6_2008-2009 #195630
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

6_2008-2009 #195657
Game Editor/Hex input-output

This is a big update from the other editor I posted here. This inlcudes: A status Bar, which holds the tooltiptext, A Tab Strip, and updated use of the CommonDialog Control. In this code, you will find out how to convert an ASCII (from a file) string to Hex and then Decimal. Then convert the decimal back to hex and write it back to the file. This is code also includeds a lot more intrinsic documentation. 9K Download......Ha! Have fun with this baby. UPDATED: MARCH 11th 2000. Now uses an UpDown Control in sync wiht the txtCASH control.

6_2008-2009 #195685
Load and Save TreeView's to/from a text file

These are two functions I wrote to save and load a treeview's nodes (saves the .text, .tag, and .key properties) to and from a text file. This is a very simple code and should be very easy to incorporate to any project.

6_2008-2009 #195701
PathExists%

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

6_2008-2009 #195733
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.

6_2008-2009 #195747
Choose Directory

Via API calls, has the user choose a directory. No commondialog needed!

6_2008-2009 #195775
DirectoryTreeview

There are no drivelist, dirlist, or filelist controls available in VB.net. This example shows how to use a treeview to display a list of folders to a user, and allow the user to select a file. Compatible with VB 2005.

6_2008-2009 #195794
CopyFileAny

This code allows you to copy any file, including your application to another destination at runtime. Note: This code has only been tested on Windows 98 using Visual Basic 6.0

6_2008-2009 #195806
dragdrop.zip

Drag & Drop file(s)

6_2008-2009 #195830
MSFlexgrid Editing Lite

This is the 'lite' version of the MSFlexgrid Editing code I posed on the 12th. This version does not use any TextBoxes at all. It has pretty much all the same features as the 'full' code, but a lot less code. Unless you're pickey you'll never know you're being faked out. 9-24-99: Major Additions (1) erases current cell and restores it again. (2) ADD, DELETE, INSERT, EXTRACT rows / cols.

6_2008-2009 #195844
COPY, CUT, PASTE Source code on how to do it EASY

This Code shows you how to copy, cut, and paste with only a few lines this is very easy to do. This is the CODE and not just some garbage like those other copy, paste, and cut. AND IT WORKS!!!

6_2008-2009 #195904
Directory Cleaner (recursively)

This function attempts to delete all files and subdirectories of the given directory name, and leaves the given directory intact, but completely empty. If the Kill command generates an error (i.e. file is in use by another process - permission denied error), then that file and subdirectory will be skipped, and the program will continue (On Error Resume Next). EXAMPLE CALL: ClearDirectory "C:\Temp\"

6_2008-2009 #195905
File Copy Class (Updated)

I have added an automatic detection of the target path. If it doesn't exist, created regardless of the depth. I have also added a verify feature to verify the copy was successful. Orig. Desc. This is a modified verision of Nabhan Ahmed's (Copy File byte by byte) found at http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=48319&lngWId=1. Please give all votes to him. His description Basically, this program shows you how to copy files byte by byte. Everytime it reads 4 kbs from the source file and write them in the destination file until it reads all bytes in the srouce file. There is a bar that shows the copying progress, and there is a label that shows the copying percentage. In the new update, you can use the browse button to find the source file you want to copy. I'm sure you'll find the code very easy to understand, and that you'll like it.( Would you please vote for this code ) My Changes: The FileCopy routine was transfered to a self contained class. It checks for proper input for the FileCopy method to work. It is now completey portable.

6_2008-2009 #195911
Hex Editor with LOTS OF COMMENTS

You know the hex read out that a hex editor would give you. It does create one of them using a hell of a lot of string manipulation and intellegnce. It is about as quick as VB would let you get and the princible can be used for just about anything envolving file manipulation, encoding, string manipulation, etc. Future versions will include a save function (easy enough to do but i dont have the time to do it now!) and the code will work in any version of VB (although you may have to copy and paste it from notepad 'cause the code was done in VB5)!

6_2008-2009 #195927
Change form backround with common dialog

Kind of like skinning your program

6_2008-2009 #195936
Open Cash Drawer Through LPT Printer

This code opens a cash drawer that is connected through a printer using a connector that goes from a reciept printer to an electronic cash drawer. This will kick the drawer open. This should work on an epson printer connected to a cash drawer.

Languages
Top Categories
Global Discovery