How to rename folder with help of asp.net
-
-
hi guys i am creating folder thru asp.net with help of system.io.directory.createdirectroy() now i want to rename directory name....but this doesnt have inbuilt rename method. so if any one has done it before please help me.....
Regards, DJ Rock
suppose ur file is located at c:\ with name 'rashida.txt' u want to rename this file to 'rashida-1.txt' then use Directory.Move("C:\rashida.txt", "C:\rashida-1.txt"); this will rename ur file thought it'll cut ur file and paste there with different name but u can rename the file in this way
Regards, Rashida Jabeen http://www.akaas.net[^]
-
hi guys i am creating folder thru asp.net with help of system.io.directory.createdirectroy() now i want to rename directory name....but this doesnt have inbuilt rename method. so if any one has done it before please help me.....
Regards, DJ Rock