1. LO PRIMERO QUE HAGO ES CREAR LA CARPETA O DIRECTORIO, EN EL DESTINO...
2.- PASO LOS ARCHIVOS A UNA CADENA...
3.- MUEVO LOS ARCHIVOS AL DESTINO Y BORRO LOS QUE ESTAN EN EL ORIGEN...
LO QUIERO HACER ES COMO RENOMBRAR EL DIRECTORIO EXISTENTE Y NO RECCURRIR A DARLE LA VUELTA PARA CREAR OTRO Y BORRAR EL ACTUAL..
Directory.CreateDirectory(Server.MapPath("../tramitanet/")+DirDestino);
string[] files = Directory.GetFiles(Server.MapPath("../tramitanet/")+ origen);
foreach(string file in files) { File.Move(file, Server.MapPath("../tramitanet/")+DirDestino + "/"+ Path.GetFileName(file)); }
Directory.Delete(Server.MapPath("../tramitanet/")+ origen,true);
![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)
![Pensando](http://static.forosdelweb.com/fdwtheme/images/smilies/scratchchin.gif)