move file from one folder to another c#
//take all files of main folder to folder model_RCCMrecTransfered
string rootFolderPath = @"F:/model_RCCMREC/";
string destinationPath = @"F:/model_RCCMrecTransfered/";
string filesToDelete = @"*_DONE.wav"; // Only delete WAV files ending by "_DONE" in their filenames
string[] fileList = System.IO.Directory.GetFiles(rootFolderPath, filesToDelete);
foreach (string file in fileList)
{
string fileToMove = rootFolderPath + file;
string moveTo = destinationPath + file;
//moving file
File.Move(fileToMove, moveTo);
Also in C#:
- press key run code unity c#
- kill child C#
- string.insert c#
- c# shorten an method
- c# wpf row definition height * in code
- add row count devepxress report
- c# function
- how to convert iformfile to byte array c#
- c# sort for loop
- c# array.clone
- show double in textbox c#
- asp.net core mvc not triggering client side validation
- unity rigidbody addforce
- cshtml foreach
- unity rigidbody constraints
- how to add a componet to a gameobject throgh code unity
- Execute code every x seconds with Update()
- c# or
- c# keyvaluepair
- how to access the dictionary from another script in unity
- mongodb custom IIdGenerator
- unity get scrollbar value
- unity add sections to a list
- How to get the world position of the edge of an object?