Tutorial-Web Home > The FileSystem Object > The Folder Object

Object Menu

Drive
File
Folder
Attributes
DateCreated
DateLastAccessed
DateLastModified
Drive
Files
IsRootFolder
Name
ParentFolder
Path
ShortName
ShortPath
Size
SubFolders
Type
Copy
Delete
Move
CreateTextFile
FileSystem
TextStream

 


 
CreateTextFile
TypeMethod
Return Value TypeNothing
Similar MethodsThe FileSystem Object's OpenTextFile Method.
DescriptionCreates a text file in a specified folder.
ExampleCode:
directoryname="c:\test"
Set fso = CreateObject("Scripting.FileSystemObject")
set mainfolder=fso.GetFolder(directoryname)
folderObject.CreateTextFile("test.txt",true,false)

The Bookworm
Search the Tutorial-Web library for books on any topic!
Sponsors

Search Now:
In Association with Amazon.com