Advertisement

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

2_2002-2004 #116330
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\"

2_2002-2004 #116348
Validate Date

Checks and makes sure that the user enters in a valid date. Make a text box on a form and call it txtDate

2_2002-2004 #116364
View information about Zip archives' contents without WinZip

Richsoft Zipit Control Version 0.9 -------- ----- ------- ------- --- This ActiveX control will read a Zip file and will return information about its contents. It also returns information about the files within the archive.

2_2002-2004 #116369
Determine file format using file header, ignoring the extension

Determines the filetype (PE Executable, GIF Image, Word Document, etc) using the file header/contents, as opposed to using the file extension. Supported types: PE Executable, INI File, AVI Movie, WAV Audio, Word document, Access database, GIF Image, MP3 audio, BMP image, TIFF image, ZIP archive, ARJ archive, RAR archive, HTML/HTA docs, JPEG image, Visual Basic files. If it can't determine the filetype, itll try and determine if the file is text or binary.

2_2002-2004 #116373
Choose Directory

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

2_2002-2004 #116376
TIFF File Info Class *Updated*

This is an updated zip of my TIFF File info class - I fixed a bug with the IFD Count.. Changing parts of the tags is not an easy task as they move depending on the images size, I needed to set the XResolution to 200/1 and the YResolution to 100/1 - file manipulation not always an easy task. So I looked for help on PSC and found 1 entry using a C DLL to return the info - more files to distribute hohum!! Well I have made my own in using VB ONLY and have turned it into a class module for you all to use.... Please Vote if you like it - any comments or suggestions to improve on it .. I think I have put all the info that is required for the header and tag info - it is based on Revision 6.0 of the TIFF file spec dated June 3,1992.

2_2002-2004 #116404
Change FileTime

This is a compact code that changes the date of an at the moment hard coded file to the time at the moment.

2_2002-2004 #116420
File Search (UPDATE)

I recieved an e.mail from Randy Porosky asking if can update the Application so it would search for multiple Files and list the Search Name only, well, it now searches for multiple Files and adds the search name to a seperate listbox. You would expect the search to take double the time when adding another File to the SearchList, but with a litte recursive programming it only adds approx 0.6 seconds to the search time. So again, this Application will search for multiple Files on multiple Drives, Folders etc, VERY FAST, eg. On my system it took 3.5sec to search 1079 Folders for 1 File, because of the recursive programming it took 4.1sec to search 1079 Folders for 2 Files.

2_2002-2004 #116427
PAK Control

With this code, you can merge multiples files (any file) in a one single file! It's fast and easy to understand.

2_2002-2004 #116428
Call Logger

This is a program to record callers to a helpdesk. It uses a very good example of records, if you are looking for how to create records then this code is for you. Special thanks to Mark Robert Strange for his excellent flicker-free gradient scrolling credits screen that I've incorporated into my program, hope this is helpful. Enjoy ...

2_2002-2004 #116450
Create a folder with one line of code no OCX's or other controls

Here you can make a new folder with just ONE line of code. You decide where you wanna place the folder(like 'c:\New Folder\Sub\'). You don't need any extra OCX's or other kind of controls so just take the code and enjoy it. The code is very useful to me and im sure it will be to you too. /Author

2_2002-2004 #116490
Validate_Drive

Validates whether a given hard/floppy/network drive is valid

2_2002-2004 #116491
Validate_File

Determines if a file exists Improved version--detects hidden files too!

2_2002-2004 #116492
cmdFormatDrive

Format Floppy Disk using API:Here is the code on How to Format Floppy Disk using API. Note -- This code can format your Hard Disk as well, so you should be careful!!!!

2_2002-2004 #116497
Launch file and associated program

How do I launch a file in its associated program? The Shell statement unfortunately only supports launching an EXE file directly. If you want to be able to launch, i.e. Microsoft Word by calling a .DOC file only, you can make your VB application launch the associated program with the document using the following method:

2_2002-2004 #116501
Converting long file names

VB4's commands for dealing with file names (such as KILL, MKDIR, and FILECOPY) support long file names without programmer interaction. A number of the Win95 API functions will return only the short name, and you'll notice a number of short file name entries if you're digging through the registration database. Therefore, occasionally you'll need to convert a short file name into a long file name. This function lets you pass a long file name with no ill effects. The file must exist for the conversion to succeed. Because this routine uses Dir$ and "walks" the path name to do its work, it will not impress you with its speed:

2_2002-2004 #116510
16 and 32 bit functions to create

16 AND 32 bit functions to read/write ini files--very useful!

2_2002-2004 #116515
Win95DirectoryPrompt

Prompting the User for a Directory in Win95. Windows' common dialogs are great if you want the user to select a file, but what if you want them to select a directory? Call the following function, which relies on Win32's new SHBrowseForFolder function:

2_2002-2004 #116531
FileThing (Explorer)

File Thing (simple file explorer) This is a small project I made, for just having a basic file-explorer. It looks a bit like the windows explorer does nothing than browsing and showing the files in a directory. It has no real function except for being a base implementation of a file explorer. But doubleclicking a file is working ! So all additional functions you need can be added. All functions are well documented. Feel free to modify this programm to your own needs.

2_2002-2004 #116550
TreeView Export Routine

Exports a TreeView control (including ALL it's children) into a graphical representation with plain text.

Languages
Top Categories
Global Discovery