Results 1 to 3 of 3

Thread: MS-DOS Guru's Only

  1. #1
    Just burned his ISO
    Join Date
    May 2008
    Posts
    16

    Default MS-DOS Guru's Only

    Hi

    This is probably not the best place to ask this question..

    Lets say I Do or Don't, manage to get my way into my network and I want or Not for the system I'm connect to, to execute a Command Prompt Line...

    (( Windows ))
    Example:

    Dir /s *.mp3 > C:\MP3.txt

    ( Basically searches the system for mp3 & lists them in a txt file... )

    But now how do I get it to copy those files to a Folder in the C: Drive???

    Tried - Dir /s *.mp3 > Xcopy *.mp3 C:\mp3\*.* (( Error ))

    Any help would be appreciated...

  2. #2
    Moderator theprez98's Avatar
    Join Date
    Jan 2010
    Location
    Maryland
    Posts
    2,533

    Default

    Quote Originally Posted by DragonKnight View Post
    Hi

    This is probably not the best place to ask this question..

    Lets say I Do or Don't, manage to get my way into my network and I want or Not for the system I'm connect to, to execute a Command Prompt Line...

    (( Windows ))
    Example:

    Dir /s *.mp3 > C:\MP3.txt

    ( Basically searches the system for mp3 & lists them in a txt file... )

    But now how do I get it to copy those files to a Folder in the C: Drive???

    Tried - Dir /s *.mp3 > Xcopy *.mp3 C:\mp3\*.* (( Error ))

    Any help would be appreciated...
    What does this have to do with BackTrack?
    "\x74\x68\x65\x70\x72\x65\x7a\x39\x38";

  3. #3
    Junior Member
    Join Date
    Aug 2007
    Posts
    40

    Default

    Same way you would in any language I can think of, a loop. In this case a for loop.

    http://jamesewelch.wordpress.com/200...through-files/

    I really don't know anything about ms dos batch scripting, but Google-Fu on the other hand... On a side note, dump dos batch scripting and use MS PowerShell, finally something MS did right in regard to a MS scripting language.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •