copying files and setting thier attributes with DOS

withinlightning's Avatar, Join Date: Oct 2010
Light Poster
@echo off
set /p x="Source:"
echo.
set /p y="Destination:"
echo.
set /p e="Extension:"
echo.
copy %x%\*.%e% %y%
echo Select an option to do:
echo.
echo Hide=h Read-Only=r
echo.
echo Sys-file=s archive=a
set /p z="My option:"
echo.
attrib %y%\*.%e% +%z%
goto :eof

write in notepad and save it as filename.bat
run and check....!!

0
withinlightning's Avatar, Join Date: Oct 2010
Light Poster
to copy all file in specific location
enter * when you are prompted for extention
0
withinlightning's Avatar, Join Date: Oct 2010
Light Poster
here are a few logical mistakes in this code but ignore them.this code is for multiple files copying of a specific extension.and if u want to copy all files of any extension, type * when u are prompted for extension.i m new to DOS so ignore mistakes...!!