Horje
move file c# Code Example
move file c#
// Move the file.
//File.Move(from,to)
File.Move(@"c:\temp\MyTest.txt", @"c:\temp2\MyTest.txt");
move file c#

for (int i = 1; i < n; i++)
{
    try
    {
        from = System.IO.Path.Combine(@"E:\vid\","(" + i.ToString() + ").PNG");
        to = System.IO.Path.Combine(@"E:\ConvertedFiles\",i.ToString().PadLeft(6,'0') + ".png");

        File.Move(from, to); // Try to move
        Console.WriteLine("Moved"); // Success
    }
    catch (IOException ex)
    {
        Console.WriteLine(ex); // Write error
    }
}

Source: devarama.com




Csharp

Related
c# write to console Code Example c# write to console Code Example
load scene unity Code Example load scene unity Code Example
how to make an object invisible unity Code Example how to make an object invisible unity Code Example
unity move character Code Example unity move character Code Example
C# get all child classes of a class Code Example C# get all child classes of a class Code Example

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