Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
Search the Tips
Tip Bank > Visual Basic > Document Management

Document Management - Page 4

61-80 of 91     Previous     Next
GetAllExecutableFiles - The list of all executable files in a directory tree
by Francesco Balena
Returns a collection with the names of all the executable files in a directory or a directory tree this includes all "exe", "bat", "com", "pif" files NOTE: Uses the GetFiles, GetDirectories, and GetAllFiles routines
GetAllPictureFiles - The list of all image files in a directory tree
by Francesco Balena
Returns a collection with the names of all the image files in a directory or a directory tree this includes all the image types that can be loaded into a PictureBox control NOTE: Uses the GetFiles, GetDirectories, and GetAllFiles routines
GetAttrDescr - The attributes of a file in a readable format
by Francesco Balena
The attributes of a file in a readable format. It works also with open files, raises an error if the file doesn't exist.
CompactPathToWindow - Shorten a path so that it fits a window's width
by Marco Bellinaso
shorten a path by using ellipses, if necessary, so that it fits inside a window if maxWidth=-1 or omitted, it uses the entire window's width
CompareFiles - Check whether two files contain the same data
by Francesco Balena
compare two files return True if they're equal
GetAllFiles - Search files in a directory or directory tree
by Francesco Balena
Returns a collection with the names of all the files that match a file specification The file specification can include wildcards; multiple specifications can be provided, using a semicolon-delimited list, as in "*.tmp;*.bat" If RECURSEDIR is True the search is extended to all ...
GetDirectories - Returns all the subdirectories of a directory
by Francesco Balena
Returns a collection holding all the subdirectories in a path that match search attributes (optionally it returns the entire path).
GetFiles - Returns all the files in a directory
by Francesco Balena
Returns a collection holding all the filenames that match a given filespec and search attributes.
ListFiles - List all the files in a directory or directory tree
by Francesco Balena
list all the files in a directory if NESTEDDIRS = True it lists a whole directory tree returns a 1-based array containing all the listed files
MakePath - Create a nested directory
by Francesco Balena
create a nested directory it's similar to MkDir, but it also creates all intermediary sub-directories
Checking if a Floppy Drive is ready using FileSystemObject library
by Marco Bellinaso
The Microsoft Scripting Runtime Library offers a FileSystemObject and a Drive object that allow you to check if a Floppy drive is ready. Before writing the code you have to add this library to your project using the References dialog window. If the library isn't contained in the list, you can ...
Let the user copy floppy disks
by Francesco Balena
The simplest way to help user copy a floppy disk is display the Copy Disk system dialog. You can do this with a one-line statement: Shell "rundll32.exe diskcopy.dll,DiskCopyRunDll 0,0"
Search a file in a directory tree using the Imagehlp DLL
by Francesco Balena
You can search a file in all the subdirectories of a given drive in VB using a recursive routine based on the Dir$ function, the FileSystemObject component, or the FindFirstFile/FindNextFile API functions. There is a fourth way you might want to try out, based on the SearchTreeForFile function ...
GetShortenedFileName - Make a filename shorter using ellipses
by Fred Block
return a file path not longer than the number of character specified in the 2nd argument If necessary, it replaces directory names with ellipsises Author: Fred Block CuzWare Systems E-mail: fblock@cuzware.com Web Site: http://www.cuzware.com
GetFileDateInfo - Retrieve all date information about a file
by Francesco Balena
Retrieve the Create date, Modify (write) date and Last Access date of the specified file. Returns True if successful, False otherwise.
GetFileVersionData - Retrieve file versioning information
by Francesco Balena
Get versioning information about a file it only works with Win32 files, and under Windows 95/98 the short path form of the specified file name must be less than 126 characters. If unsuccessful returns Empty If successful returns an array of strings in the format "resourcename: ...
Add a file to the list of recent documents
by Francesco Balena
The Windows shell provides a function that lets you add a file to the list of the recent documents, that is the list that you can access from the Start menu: Private Declare Function SHAddToRecentDocs Lib "shell32.dll" (ByVal dwFlags As Long, ByVal dwData As String) As Long
LongPathName - Convert a 8.3 file name to long format
by Francesco Balena
Convert a short file/path name to a long name the file or path must exist returns a null string in case of error IMPORTANT: this function is only available under Windows 98 and Windows 2000
ShortPathName - Convert a long file name to 8.3 format
by Francesco Balena
Convert a long file/path name to a short 8.3 name the path must exist, but the file doesn't have to Return a null string in case of error
VolumeLabel - Read the label of a disk volume
by Francesco Balena
Return the volume label of a disk Pass a null string for the current disk
61-80 of 91     Previous     Next
Sitemap