Horje
move files from one directory to another using c# Code Example
move files from one directory to another using c#
using System.IO;

string rootDirectory = @"C:\Users\USER\Folder1";
string destinationDirectory = @"C:\Users\USER\Folder2";

string[] Files = Directory.GetFiles(rootDirectory);

foreach (string file in Files) {
	File.Move(file, $"{destinationDirectory}{Path.GetFileName(file)}");
}




Csharp

Related
pcamera Code Example pcamera Code Example
c# zeitverzögerung Code Example c# zeitverzögerung Code Example
raq query ef core Code Example raq query ef core Code Example
Property or indexer cannot be assigned to -- it is read only  "tests" Code Example Property or indexer cannot be assigned to -- it is read only "tests" Code Example
c# use api rest Code Example c# use api rest Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6