|Your still missing the details:|
1) Actually i need to delete a Folder and a file from a path for eg: C:\Program Files\HiCommand\Base\CC\web\containers\HiCommand\webapps
2) Paste another File in the same above mentioned path.
It still lacks the file name and the name of the directory to be deleted.
rem the next command will completely remove "t:\he\directory"
rem along with anything in it(doesn't go to the recycle bin).
rd /s "t:\he\directory"
rem delete the file (again doesn't go to the recycle bin)
rem copy the file into the base dir
copy "t:\he\file.ext" "t:\he\dir\filename.ext"
If you won't give all of the details you won't get very good help.