1.

Solve : change directory name using batch file?

Answer»

Hi there,

I need help to rename all directories in a folder with the name STRUCTURE as "BS2315_20070212_2039.zip" to "BS2315_20070212_2039" (ie i need to remove the ".zip" extension from all the directory names). These directories are created dynamically everyday from zip files which i UNZIP using the following batch file, hence the names of the directories is not KNOWN. I need a batch file which automatically changes the names of all the directories by removing ".zip" extension after UNZIPPING the files using the batch file CODE shown below:

@echo off
xcopy c:\data_load c:\data_load_backup
cd c:\data_load_backup
for %%f in (*.zip) do unzip %%f -d c:\unzipped_data\%%f

Any help will be greatly appreciated..
Thanks
Nisha



Discussion

No Comment Found