Results 1 to 3 of 3

Thread: ขอ คำสั่ง batch file หน่อยครับ

  1. #1
    Junior Member
    Join Date
    May 2007
    Posts
    8


    อยากได้คำสั่ง batch file หรือ bat อะไรเนี้ยแหละครับ ต้องการมากๆเลยน่ะครับ อยากได้คำสั่งทั้งหมด หรือ เวปสอนก้อได้อะครับ ขอเป็นภาษาไทยน่ะครับ ผมไม่เก่าภาษาอังกฤษอะครับ

  2. #2
    aGFja2Vy
    Guest


    นี่เลยครับ พิมพ์ help/? หรือ /?

  3. #3
    Junior Member
    Join Date
    Jul 2007
    Posts
    4


    มีแต่เป็นภาษาอังกถษน่ะคับ
    Batch commands
    Just like all MS-DOS commands, all batch file commands are not case sensitive. However, in the below listing we have listed all commands in all caps to help you identify what is a command and what is not.

    @ Does not echo back the text after the at symbol. This is most commonly used as @ECHO OFF to prevent any of the commands in the batch file from being displayed, just the information needed.
    %1 The percent followed by a numeric value, beginning with one, allows users to add variables within a batch file. The below line is an example of what can be used in a batch file.
    echo Hello %1
    When the above one-line batch file is created, add your name after the batch file. For example, typing myname (being the name of the bat file) and then your name:

    myname bob

    would output:

    Hello bob

    Note: This can be extended to %2, %3, and so on.

    [b]:LABEL [/b] By adding a colon in front of a word, such as LABEL, you create a category, more commonly known as a label. This allows you to skip to certain sections of a batch file such as the end of the batch file. Also see GOTO.
    CALL This is used to run another batch file within a batch file. When the batch file that is called is completed, the remainder of the original batch file is completed. Note if the batch file does not exist it will give an error message.
    CHOICE See running different programs for an example of how to use this command.
    Additional information and the syntax of this command in each version of Windows and MS-DOS can be found on our CHOICE command page.

    CLS Just like the DOS command would clear your screen.
    Additional information and the syntax of this command in each version of Windows and MS-DOS can be found on our CLS command page.

    ECHO Will echo a message in the batch file. Such as "ECHO Hello World" will print Hello World on the screen when executed. Note if you have not typed @ECHO OFF at the beginning of the file this will also print "ECHO Hello World" and "Hello World". If you would just like to create a blank line, type ECHO. adding the period creates an empty line.
    EXIT Exits out of the DOS window if the batch file is running from Windows.
    Additional information and the syntax of this command in each version of Windows and MS-DOS can be found on our EXIT command page.

    GOTO LABEL Used to go to a certain label, such as LABEL. An example of GOTO would be to GOTO END. For an example of this see running different programs.
    Additional information and the syntax of this command in each version of Windows and MS-DOS can be found on our GOTO command page.

    IF Used to check for a certain condition if the condition exists. If that condition exists it will perform that function. To see an example of this see running different programs.
    Additional information and the syntax of this command in each version of Windows and MS-DOS can be found on our IF command page.

    PAUSE Prompt the user to press any key to continue.
    REM Allows you to place comments into the batch file without displaying or executing that line when the batch file is run.
    SHIFT Changes the position of replaceable parameters in a batch program.
    Additional information and the syntax of this command in each version of Windows and MS-DOS can be found on our SHIFT command page.

    START Used for Windows 95, Windows 98, and Windows NT 4.0 and above to start a windows application; such as START C:\WINDOW\CALC would run the Windows Calculator. Users running Windows 3.x need to utilize the WIN command. For example, WIN C:\Windows\CALC.EXE would run Windows and then Calculator after Windows has finished loading.
    Additional information about the start command can be found on our start command page.

    Credit
    http://www.computerhope.com/batch.htm
    MS Dos batch files
    http://www.allenware.com/icsw/icswidx.htm

Similar Threads

  1. สคลิปไวรัส batch file
    By loy in forum บทความ คอมพิวเตอร์ ทัวไป
    Replies: 0
    Last Post: 18-04-2010, 06:07 AM
  2. The best เเมดทริกโค้ด batch file
    By nirvana02 in forum แนะความรู้ด้าน Programming ต่างๆ
    Replies: 1
    Last Post: 11-08-2009, 08:44 PM
  3. Replies: 0
    Last Post: 28-12-2008, 12:51 PM
  4. Replies: 0
    Last Post: 01-10-2008, 02:14 PM
  5. การเขียน batch file
    By green2 in forum บทความ คอมพิวเตอร์ ทัวไป
    Replies: 0
    Last Post: 15-10-2007, 03:47 PM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Tags for this Thread

Posting Permissions

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