Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
The following conditions may cause an exception to be thrown:
*
The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\) (ArgumentException).
*
The system could not retrieve the absolute path (ArgumentException).
*
destinationFileName contains path information (ArgumentException).
*
The path is not valid because it is Nothing (ArgumentNullException).
*
destinationFileName is Nothing or an empty string (ArgumentNullException).
*
The source file is not valid or does not exist (FileNotFoundException).
*
The combined path points to an existing directory (IOException).
*
The destination file exists and overwrite is set to False (IOException).
*
The user does not have sufficient permissions to access the file (IOException).
*
A file in the target directory with the same name is in use (IOException).
*
A file or directory name in the path contains a colon) or is in an invalid format (NotSupportedException).
*
UICancelOption is set to ThrowException, and the user has canceled the operation (OperationCanceledException).
*
UICancelOption is set to ThrowException, and an unspecified I/O error occurs (OperationCanceledException).
*
The path exceeds the system-defined maximum length (PathTooLongException).
*
The user does not have required permission (UnauthorizedAccessException).
*
The user lacks necessary permissions to view the path (SecurityException).
' Copy the file to a new location without overwriting existing file.
My.Computer.FileSystem.CopyFile( _
"C:\UserFiles\TestFiles\testFile.txt", _
"C:\UserFiles\TestFiles2\testFile.txt")
' Copy the file to a new folder, overwriting existing file.
My.Computer.FileSystem.CopyFile( _
"C:\UserFiles\TestFiles\testFile.txt", _
"C:\UserFiles\TestFiles2\testFile.txt", _
FileIO.UIOption.AllDialogs, _
FileIO.UICancelOption.DoNothing)
' Copy the file to a new folder and rename it.
My.Computer.FileSystem.CopyFile( _
"C:\UserFiles\TestFiles\testFile.txt", _
"C:\UserFiles\TestFiles2\NewFile.txt", _
FileIO.UIOption.AllDialogs, _
FileIO.UICancelOption.DoNothing)
Volgens die site moet ik dit dus doen??
My.Computer.FileSystem.CopyFile(sourceFileName ,destinationFileName ,overwrite)
want ik snap het niet helemaal
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.