| ش | ی | د | س | چ | پ | ج |
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
موارد زیر به کراّت در این بلاگ یادآوری شده
Scripting.FileSystemObject
Drive Object Properties :
AvailableSpace
'Returns the amount of available space to a user on a specified drive or network share.
DriveLetter
'Returns one uppercase letter that identifies the local drive or a network share.
DriveType
'Returns the type of a specified drive.FileSystemReturns the file system in use for a specified drive.
FreeSpace
'Returns the amount of free space to a user on a specified drive or network share.
IsReady
'Returns true if the specified drive is ready, and false if not.
Path
'Returns an uppercase letter followed by a colon that indicates the path name for a specified drive.
RootFolder
'Returns a Folder object that represents the root folder of a specified drive.
SerialNumber
'Returns the serial number of a specified drive.
ShareName
'Returns the network share name for a specified drive.
TotalSize
'Returns the total size of a specified drive or network share.
VolumeName
'Sets or returns the volume name of a specified drive.
متدهای شئ FileSystemObject
Methods :
CopyFile
CopyFolder
CreateFolder
CreateTextFile
DeleteFile
DeleteFolder
DriveExists
FileExists
FolderExists
GetAbsolutePathName
GetBaseName
'Returns the base name of a specified file or folder.
GetDrive
'Returns a Drive object corresponding to the drive in a specified path.
GetDriveName
'Returns the drive name of a specified path.
GetExtensionName
'Returns the file extension name for the last component in a specified path.
GetFile
'Returns a File object for a specified path.
GetFileName
'Returns the file name or folder name for the last component in a specified path.
GetFolder
'Returns a Folder object for a specified path.
GetParentFolderName
'Returns the name of the parent folder of the last component in a specified path.
GetSpecialFolder
'Returns the path to some of Windows' special folders.
Move
MoveFile
MoveFolder
OpenAsTextStream
'Opens a specified file and returns a TextStream object that can be used to read from, write to, or append to the file.
OpenTextFile
'Opens a file and returns a TextStream object that can be used to access the file.
WriteLine
'Writes a specified string and new-line character to a TextStream file.
در ابتدا با استفاده از متد CreateObject شئ FileSystemObject را ایجاد کنید و بعد از متدها و ویژگیهای آن استفاده کنید.
آذر سال ۱۴۰۲ :

Sub Ger_sinal()Dim sinal() As integerReDim sinal(3)'Test valuessinal(0) = -22306sinal(1) = 5836sinal(2) = 0sinal(3) = 23326'Creates a file and puts the values in itDim n_arq As IntegerDim path As Stringpath = "C:\Users\DELL\Desktop\App\WAVs\Sinal_VBA.wav"Set fs = CreateObject("Scripting.FileSystemObject")Set a = fs.CreateTextFile(path, True)a.Closen_arq = FreeFileOpen path For Binary As n_arqPut n_arq, , sinalClose n_arqEnd Sub
| Method | Description |
| CopyFile | Used to copy an existing file. |
| CopyFolder | Used to copy an existing folder. |
| CreateFolder | Used to create a folder. |
| CreateTextFile | Used to create a text file. |
| DeleteFile | Used to delete a file. |
| DeleteFolder | Used to delete a folder. |
| DriveExists | Used to determine whether a drive exists. |
| FileExists | Used to determine whether a file exists. |
| FolderExists | Used to determine whether a folder exists. |
| GetAbsolutePathName | Used to return the full path name. |
| GetDrive | Used to return a specified drive. |
| GetDriveName | Used to return the drive name. |
| GetFile | Used to return a specified file. |
| GetFileName | Used to return the file name. |
| GetFolder | Used to return a specified folder. |
| GetParentFolderName | Used to return the name of the parent folder. |
| GetTempName | Used to create and return a string representing a file name. |
| MoveFile | Used to move a file. |
| MoveFolder | Used to move a folder. |
| OpenTextFile | Used to open an existing text file |
r = Range("A65536").End(xlUp).Row + 1
For Each FileItem In SourceFolder.Files
'Display file properties
Cells(r, 1).Formula = FileItem.Name
Cells(r, 2).Formula = FileItem.Path
Cells(r, 3).Formula = FileItem.Size
Cells(r, 4).Formula = FileItem.DateCreated
Cells(r, 5).Formula = FileItem.DateLastModified
r = r + 1
Next FileItem