Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,


I have a file in a folder (temporay) and the file in it has temporary name. Now i want to move that file to another folder with the original name..

VB
D:\Arjun\Projects\uboss\UBOSS\Provisioning\Temp\  -->Temporary path

autoattendantindiaone@IndiaDevelopment.com_ENT_adios.wav --> Temporary File Name

D:\Arjun\Projects\uboss\UBOSS\Provisioning\Uploads\Auto Attendant\ -->Original Path (destination path)

adios.wav --> original file Name
Posted

Use below code

C#
System.IO.File.Move(@"D:\Arjun\Projects\uboss\UBOSS\Provisioning\Temp\autoattendantindiaone@IndiaDevelopment.com_ENT_adios.wav", @"D:\Arjun\Projects\uboss\UBOSS\Provisioning\Uploads\Auto Attendant\adios.wav");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900