Jump to content

neXussT

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by neXussT

  1. Type "DIR /?" for information on the DIR commands paramaters

    If you want a list of files in the current directory without listing the directory, type this:

    DIR /a-d

    If you want to get rid of the file information, type this:

    DIR /b/a-d

    If you want a list of all the files in the current directory and subdirectories without listing the directories, type this:

    DIR /s/b/a-d

    You can learn a lot by typing the following commands:

    SET /?

    DIR /?

    FOR /?

    HELP

    neXussT

  2. The @ character turns off echoing of the command itself, so you only see the output of the command. You can affect the entire batch file by putting a "@echo off" at the beginning of the file.

    An example of a command in a batch file without disabling echoing:

    echo Hello World!

    The result:

    echo Hello World!

    Hello World!

    An example of turning off echoing for an entire batch file:

    @echo off

    echo Hello World!

    The result:

    Hello World!

    If you want to disable echoing for only one command, use this:

    @echo Hello World!

    ---

    Using "@echo off" is very standard for batch files, and you will almost never see one without it.

    neXussT

×
×
  • Create New...