Saturday 28 December 2013

My note: Batch programming

Echo command
Echo = display it to command line screen 
Used to display something on the command-line screen.

Gini, jika echo on (default), semua command akan di echo (ditampilkan di layar).
Jika echo off, semua command tidak akan di echo, tapi, command echo off nya tetap ditampilkan. Apa solusi? tambahkan @ di depan command echo off itu.
 

Contoh:
Echo Hello World!

Set command
Set command without refinement (polos) = used to compose a variable

Set command with /a ->used to enter


Set with /P= used to display and input a value to a variable.
 prompt

Contoh:
set /P enter your password

Pause
Press any key to enter..

Goto
:label

Exit

No comments:

Post a Comment