Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Ethical hacking (http://www.go4expert.com/forums/ethical-hacking-forum/)
-   -   copying files and setting thier attributes with DOS (http://www.go4expert.com/forums/copying-files-setting-thier-attributes-t23559/)

withinlightning 13Oct2010 01:11

copying files and setting thier attributes with DOS
 
@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....!!


withinlightning 13Oct2010 01:14

Re: copying files and setting thier attributes with DOS
 
to copy all file in specific location
enter * when you are prompted for extention

withinlightning 13Oct2010 01:40

Re: copying files and setting thier attributes with DOS
 
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...!!



All times are GMT +5.5. The time now is 18:54.