Creating, Deleting, and Moving Files and Directories in Visual Basic
This section lists tasks associated with creating, deleting, moving, and renaming files and directories in Visual Basic.
This section lists tasks associated with creating, deleting, moving, and renaming files and directories in Visual Basic.
Demonstrates how to copy files with a specific file name pattern, such as only .txt files, to a directory.
Demonstrates how to create a copy of a file in the same directory.
Demonstrates how to copy a file to another directory.
Demonstrates how to create a file.
Demonstrates how to delete a file.
Demonstrates how to delete all the files in a specific directory.
Demonstrates how to list only files with a specific file name pattern in a directory.
Demonstrates how to move a file to a different directory.
Demonstrates how to move multiple files to a different directory.
Demonstrates how to rename a file.
Demonstrates how to rename a directory.
Demonstrates how to copy a directory to another location.
Demonstrates how to create a directory.
Demonstrates how to delete a directory.
Demonstrates how to list directories with a specific pattern in their name.
Demonstrates how to list the files in a directory.
Demonstrates how to determine how many files are in a directory.
Demonstrates how to move a directory.
Demonstrates how to move the contents of a directory.
Demonstrates how to read from special directories.
Demonstrates how to use My methods to combine file paths.
Describes the My.Computer.FileSystem object and its members.
Describes the CombinePath method.
Describes the CopyDirectory method.
Describes the CopyFile method.
Describes the CreateDirectory method.
Describes the DeleteDirectory method.
Describes the DeleteFile method.
Describes the GetParentPath method.
Describes the MoveDirectory method.
Describes the MoveFile method.
Describes the RenameDirectory method.
Describes the RenameFile method.
Describes the SpecialDirectories object.
Lists tasks associated with reading from files.
Lists tasks involving writing to files.
Lists tasks associated with getting and setting file, directory, and drive properties.