copying files and setting thier attributes with DOS

Discussion in 'Ethical hacking' started by withinlightning, Oct 12, 2010.

  1. withinlightning

    withinlightning Banned

    Joined:
    Oct 1, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    Pakistan
    @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....!!

     
  2. withinlightning

    withinlightning Banned

    Joined:
    Oct 1, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    Pakistan
    to copy all file in specific location
    enter * when you are prompted for extention
     
  3. withinlightning

    withinlightning Banned

    Joined:
    Oct 1, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    Pakistan
    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...!!

     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice