Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
VB VB (1648)
VB.net VB.net (736)
C# C# (15)
ASP.net ASP.net (779)
ASP ASP (41)
VC++ VC++ (25)
PHP PHP (0)
JAVA JAVA (4)
JScript JScript (5)
  Database
» SQL Server (708)
» ORACLE (5)
» MySQL (0)
» DB2 (0)
Automation
» C/C++/ASM (11)
» Microcontroller (1)
» Circuit Design (0)
OS/Networking
» Networking (5)
» Unix/Linux (1)
» WinNT/2k/2003 (8)
Graphics
» Flash (0)
» Maya (0)
» 3D max (0)
» Photoshop (0)
Links
» ASP.net (2)
» PC Interfacing (1)
» Networking (4)
» SQL Server (4)
» VB (23)
» VB.net (4)
» VC (3)
» HTML/CSS/JavaScript (10)
Tools
» Regular Expr Tester
» Free Tools

Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )

GetDirectories - Returns all the subdirectories of a directory
Total Hit (3216) «Code LangId=1»' Returns a collection holding all the subdirectories in a path ' that match search attributes (optionally it returns the entire path). Function GetDirectories(path As String, Optional Attributes As VbFileAttribute, _ Optional IncludePath As Boolean) As Collection Dim d ....Read More
Rating
GetDirectorySize - Evaluate disk space used by files and subdirectories
Total Hit (2911) «Code LangId=1»' Retrieve the number of bytes by all the files in a directory ' (it doesn't account for slack space, that is unused space in disk sectors) ' ' If INCLUDESUBDIRS is true, it recursively parses all subdirectories. ' ' supports only up to 2G directories. Function GetDirectorySi ....Read More
Rating
GetDriveTypeEx - Detect drive type, including CD or DVD driver
Total Hit (7363) «code LangId=1»Private Type DEVICE_MEDIA_INFO Cylinders As Double MediaType As STORAGE_MEDIA_TYPE TracksPerCylinder As Long SectorsPerTrack As Long BytesPerSector As Long NumberMediaSides As Long MediaCharacteristics As Long End Type Private Type GET_MEDIA_TYPES ....Read More
Rating
GetFilebaseName - Retrieve the base portion in a file name
Total Hit (1584) «Code LangId=1»' Retrieve a file's base name ' if the second argument is true, the result include the file's path Function GetFileBaseName(FileName As String, Optional ByVal IncludePath As _ Boolean) As String Dim i As Long, startPos As Long, endPos As Long startPos = 1 ....Read More
Rating
GetFileDateInfo - Retrieve all date information about a file
Total Hit (3719) «Code LangId=1» Private Type SYSTEMTIME wYear As Integer wMonth As Integer wDayOfWeek As Integer wDay As Integer wHour As Integer wMinute As Integer wSecond As Integer wMilliseconds As Integer End Type Private Type FILETIME dwLowDateTime As Long ....Read More
Rating
GetFileDescription - Get a file's description through Windows API
Total Hit (2227) «Code LangId=1»Private Const MAX_PATH = 260 Private Type SHFILEINFO hIcon As Long iIcon As Long dwAttributes As Long szDisplayName As String * MAX_PATH szTypeName As String * 80 End Type Private Declare Function SHGetFileInfo Lib "Shell32" Alias "SHGetFileInfoA" _ ....Read More
Rating
GetFileDescriptionFromReg - Get a file's description from the registry
Total Hit (1819) «Code LangId=1»' get the description of a file from the registry ' or a null string if the file's extension isn't registered ' ' NOTE: requires the GetRegistrtValue function Function GetFileDescriptionFromReg(ByVal FileName As String) As String Const HKEY_CLASSES_ROOT = &H80000000 ....Read More
Rating
GetFileExtension - The extension in a filename
Total Hit (2033) «Code LangId=1»' Return the extension of a file name Function GetFileExtension(ByVal FileName As String) As String Dim i As Long For i = Len(FileName) To 1 Step -1 Select Case Mid$(FileName, i, 1) Case "." GetFileExtension = Mid$(FileName, i + 1) ....Read More
Rating
GetFileIcon - Retrieve the icon associated to a file
Total Hit (4967) «Code LangId=1»Private Const MAX_PATH = 260 Private Type SHFILEINFO hIcon As Long iIcon As Long dwAttributes As Long szDisplayName As String * MAX_PATH szTypeName As String * 80 End Type Private Declare Function SHGetFileInfo Lib "Shell32" Alias "SHGetFileInfoA" _ ....Read More
Rating
GetFileOwner - Get the owner of an NTFS file
Total Hit (5176) «Code LangId=1»Private Declare Function GetFileSecurity Lib "advapi32.dll" Alias _ "GetFileSecurityA" (ByVal lpFileName As String, ByVal RequestedInformation _ As Long, pSecurityDescriptor As Byte, ByVal nLength As Long, _ lpnLengthNeeded As Long) As Long Private Declare Function Ge ....Read More
Rating
GetFilePath - Extract the path portion of a file name
Total Hit (3831) «Code LangId=1» ' Retrieve a file's path ' ' Note: trailing backslashes are never included in the result Function GetFilePath(FileName As String) As String Dim i As Long For i = Len(FileName) To 1 Step -1 Select Case Mid$(FileName, i, 1) Case ":" ....Read More
Rating
GetFiles - Returns all the files in a directory
Total Hit (1668) «Code LangId=1»' Returns a collection holding all the filenames that ' match a given filespec and search attributes. Function GetFiles(filespec As String, Optional Attributes As VbFileAttribute) _ As Collection Dim filename As String Set GetFiles = New Collection ....Read More
Rating
GetFilesInfo - Read all the information about all the files or subdires in a given path
Total Hit (2790) «Code LangId=1»Option Explicit Private Declare Function FindFirstFile Lib "kernel32" Alias "FindFirstFileA" _ (ByVal lpFileName As String, lpFindFileData As WIN32_FIND_DATA) As Long Private Declare Function FindNextFile Lib "kernel32" Alias "FindNextFileA" _ (ByVal hFindFile As Long, ....Read More
Rating
GetFileVersionData - Retrieve file versioning information
Total Hit (2207) «Code LangId=1»Private Declare Function GetFileVersionInfoSize Lib "version.dll" Alias _ "GetFileVersionInfoSizeA" (ByVal lptstrFilename As String, _ lpdwHandle As Long) As Long Private Declare Function GetFileVersionInfo Lib "version.dll" Alias _ "GetFileVersionInfoA" (ByVal lptstr ....Read More
Rating
GetShortenedFileName - Make a filename shorter using ellipses
Total Hit (1889) «Code LangId=1» ' 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.cu ....Read More
Rating
GetShortFileName - Convert a filename to 8.3 format
Total Hit (4240) «Code LangId=1» Private Declare Function GetShortPathName Lib "kernel32" Alias _ "GetShortPathNameA" (ByVal lpszLongPath As String, _ ByVal lpszShortPath As String, ByVal cchBuffer As Long) As Long ' Convert a long filename into the short 8.3 format ' if the file doesn't exist, retur ....Read More
Rating
GetTempFile - Create a temporary file
Total Hit (2759) «Code LangId=1» Private Declare Function GetTempFileName Lib "Kernel32" Alias _ "GetTempFileNameA" (ByVal lpszPath As String, _ ByVal lpPrefixString As String, ByVal wUnique As Long, _ ByVal lpTempFileName As String) As Long Private Declare Function GetTempPath Lib "Kernel32" Alias ....Read More
Rating
IsExecFile - Check whether a file is an executable file
Total Hit (1429) «Code LangId=1»'check whether the specified file is an executable, ' by checking the last 4 characters. 'Example: MsgBox "File is exe: " & IsExecFile("C:\windows\notepad.exe") Function IsExecFile(ByVal sFileName As String) As Boolean Dim sExt As String On Error Resume Next ....Read More
Rating
ListFiles - List all the files in a directory or directory tree
Total Hit (1624) «Code LangId=1» ' 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 Function ListFiles(ByVal Path As String, Optional ByVal NestedDirs As Boolean) _ As String() Dim fso As New Scripti ....Read More
Rating
LongPathName - Convert a 8.3 file name to long format
Total Hit (2164) «Code LangId=1»Private Declare Function GetLongPathName Lib "kernel32" Alias _ "GetLongPathNameA" (ByVal lpszShortPath As String, _ ByVal lpszLongPath As String, ByVal cchBuffer As Long) As Long Const MAX_PATH = 260 ' Convert a short file/path name to a long name ' the file or path ....Read More
Rating
MakeDirPath - Create a path, including intermediate directories
Total Hit (1554) «Code LangId=1»' Create a nested directory ' ' This is similar to the MkDir command, but it creates any ' intermediate directory if necessary Sub MakeDirPath(dirname As String) Dim i As Long, path As String Do i = InStr(i + 1, dirname & "\", "\") path = Left$ ....Read More
Rating
MakeFileName - Create a file name out of its parts
Total Hit (1807) «Code LangId=1» ' Make a complete file name by assemblying its individual parts ' if Extension isn't omitted, it overwrites any extension held in BaseName Function MakeFileName(Drive As String, Path As String, BaseName As String, _ Optional Extension As String) ' add a trailing col ....Read More
Rating
MakePath - Create a nested directory
Total Hit (1838) «Code LangId=1»' create a nested directory ' ' it's similar to MkDir, but it also creates ' all intermediary sub-directories Sub MakePath(ByVal path As String) Dim i As Integer, ercode As Long On Error Resume Next Do ' get the next path chunk i = InStr(i ....Read More
Rating
ReadFromStdInput - Read from standard input stream
Total Hit (3454) «Code LangId=1»Private Declare Function GetStdHandle Lib "kernel32" (ByVal nStdHandle As Long) _ As Long Private Declare Function ReadFile Lib "kernel32" (ByVal hFile As Long, _ lpBuffer As Any, ByVal nNumberOfBytesToRead As Long, _ lpNumberOfBytesRead As Long, lpOverlapped As Any) ....Read More
Rating
SearchFileOnPath - Search a file on system path
Total Hit (1609) «Code LangId=1» Private Declare Function SearchPath Lib "kernel32" Alias "SearchPathA" (ByVal _ lpPath As String, ByVal lpFileName As String, ByVal lpExtension As String, _ ByVal nBufferLength As Long, ByVal lpBuffer As String, _ ByVal lpFilePart As String) As Long ' Search a fil ....Read More
Rating
SetFileSize - Trim or extend a file's size
Total Hit (2661) «Code LangId=1» Option Explicit Private Declare Function CreateFile Lib "kernel32" Alias "CreateFileA" (ByVal _ lpFileName As String, ByVal dwDesiredAccess As Long, _ ByVal dwShareMode As Long, lpSecurityAttributes As Any, _ ByVal dwCreationDisposition As Long, ByVal dwFlagsAndAt ....Read More
Rating
GetAllExecutableFiles - The list of all executable files in a directory tree
Total Hit (2697) «Code LangId=1»' 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 Function GetAllExecutableFiles(ByVal path As String ....Read More
Rating
GetAllFiles - Search files in a directory or directory tree
Total Hit (4648) «code LangId=1»Private Sub Command1_Click() Dim col As Collection '//Get all files from C:\ (No sub folder) which are older than 5 days and newer than 30 days Set col = GetAllFiles("c:\", "*.*", False, 30, 5) For Each f In col Debug.Print FileDateTime(f) & "=>" & f ....Read More
Rating
GetAllPictureFiles - The list of all image files in a directory tree
Total Hit (3188) «Code LangId=1»' 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 Function GetAllPictureFiles( ....Read More
Rating
GetAttrDescr - The attributes of a file in a readable format
Total Hit (2614) «Code LangId=1» ' The attributes of a file in a readable format. ' It works also with open files, raises an error if the file doesn't exist. Function GetAttrDescr(filename As String) As String Dim result As String, attr As Long ' get file attributes as a bit-coded field attr = ....Read More
Rating


(Page 103 of 133) 3968 Result(s) found  ... 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 ...

Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.