FileSystemObject (FSO):
FSO Scripting type library, Scrrun.dll. -, FileSystemObject.
FileSystemObject, CreateObject. VBScript :
Dim fso Set fso = CreateObject("Scripting.FileSystemObject")Scripting - , FileSystemObject - , . FileSystemObject, , .
FileSystemObject. , , CreateTextFile CreateFolder ( FSO ).
DeleteFile DeleteFolder FileSystemObject. , .
FileSystemObject . ,
CopyFile
FileSystemObject, Copy File.
, .
, , get FileSystemObject:
Dim fso, f1 Set fso = CreateObject("Scripting.FileSystemObject") Set f1 = fso.GetFile("c:\test.txt")get , create . , , CreateFolder, GetFolder , , . CreateFolder , , , . :
Sub CreateFolder Dim fso, fldr Set fso = CreateObject("Scripting.FileSystemObject") Set fldr = fso.CreateFolder("C:\MyTest") End Sub
, . , , , ( GetFolder, ).
GetFolder:
Set fldr = fso.GetFolder("c:\Windows"), Folder, Name ():
MsgBox " : " & fldr.Name, :
Dim fso, f1 ' File. Set f1 = fso.GetFile("c:\Windows\desktop.ini") ' . MsgBox " : " & f1.DateLastModified
10.11.2021 - 12:37: - Personalias -> WHO IS WHO - - _. 10.11.2021 - 12:36: - Conscience -> . ? - _. 10.11.2021 - 12:36: , , - Upbringing, Inlightening, Education -> ... - _. 10.11.2021 - 12:35: - Ecology -> - _. 10.11.2021 - 12:34: , - War, Politics and Science -> - _. 10.11.2021 - 12:34: , - War, Politics and Science -> . - _. 10.11.2021 - 12:34: , , - Upbringing, Inlightening, Education -> , - _. 10.11.2021 - 09:18: - New Technologies -> , 5G- - _. 10.11.2021 - 09:18: - Ecology -> - _. 10.11.2021 - 09:16: - Ecology -> - _. 10.11.2021 - 09:15: , , - Upbringing, Inlightening, Education -> - _. 10.11.2021 - 09:13: , , - Upbringing, Inlightening, Education -> - _. |