Batch File biasa digunakan dalam perintah sederhana untuk membuat atau menjalankan peritah dengan berdasarkan argumen yang diketahui oleh Windows. Sehingga dengan cara ini biasanya virus dibuat oleh para Pakar Komputer, dan biasanya berekstensi .bat. Kali ini penulis akan membagi perintah-perintah khusus yang ada dalam Batch File.
Command
|
Function
|
---|---|
ACINIUPD | Modify INI files (TS only) |
ANSI.SYS | Text attributes, cursor & keyboard manipulation |
APPEND | Allows programs to open data files in specified directories as if they were in the current directory (DOS) |
ARP | Display or modify IP-to-Physical address translation tables used byARP |
ASSOC | Associate a file extension with a file type, or list all associations |
AT | Command line scheduler |
ATTRIB | List & manipulate file attributes |
AUTOFAIL | Suppress network connection error messages at startup |
BACKUP | Backup files to floppy disks (requires RESTORE from the exact same DOS version) |
BASICA | Basic interpreter for IBM PC-DOS |
BCDEDIT | Sets properties in boot database to control boot loading (Windows 7) |
BOOTCFG | Edit Windows boot settings in BOOT.INI (XP) |
BREAK | Enable/disable extended Ctrl+C checking (16-bits) |
CACLS | Read and set file access permissions |
CALL | Run a batch file from within another batch file |
CD | Show or change the current directory (same as CHDIR) |
CDBURN | Write ISO images to CD (Windows Server 2003 Resource Kit tool) |
CERTREQ | Request certificates from a certification authority (Windows Server 2003) |
CERTUTIL | Manage certificates (Windows Server 2003) |
CHANGE | Change TS port mappings, install mode, or enable/disable TS logon |
CHCP | Display or set the active Code Page |
CHDIR | Show or change the current directory (same as CD) |
CHGLOGON | Enable/disable TS logon |
CHGPORT | Change TS port mappings |
CHGUSR | Change TS install mode |
CHKDSK | Check a disk for file system errors or bad sectors |
CHKNTFS | Display or modify the checking of disk at boot time |
CHOICE | Prompt user for to choose option from list of choices |
CIPHER | Display or alter the encryption of directories [files] on NTFS partitions |
CLEANMGR | Automate cleanup of temporary files, IE cache, downloaded files & recycle bin (XP) |
CLS | Clear the screen/window |
CMD.EXE | Command interpreter (32-bits) |
CMDKEY | Manage stored user names and passwords (Windows Server 2003 and later) |
COLOR | Change text and background color in console |
COMMAND.COM | Command interpreter (16-bits) |
COMP | Compare files |
COMPACT | Display or modify file compression on NTFS partitions |
%COMSPEC% | Command interpreter specification in master environment |
CONTROL | Start Control Panel or a Control Panel applet |
CONVERT | Convert a FAT volume to NTFS |
COPY | Copy files |
CPROFILE | Clean profiles of wasted space (Windows Server 2003) |
CSCRIPT | Console mode interpreter for VBScript/JScript |
CSVDE | Import/export data from Active Directory in CSV format |
CTTY | Redirect all input and output to a file or (serial, parallel or null) device |
DATE | Display & manipulate system date |
DEBUG | Debugger & assembler |
DEFRAG | Locate and consolidate fragmented boot files, data files, and folders on local volumes |
DEL | Delete one or more files |
DELTREE | Delete an entire folder including files and subfolders |
DEVCON | Command line Device Manager (free Microsoft download) |
DHCPLOC | Discover rogue DHCP servers |
DIANTZ | Compress and add files to new or existing .CAB files(equivalent of MAKECAB) |
DIR | List files & directories |
DISKCOMP | Compare two floppy disks on a track by track basis |
DISKCOPY | Copy a floppy disks on a track by track basis |
DISKPART | Manipulate harddisk partitions and logical drives |
DOSKEY | Edit or recall command lines, or create command line macros |
DPATH | Allows programs to open data files in specified directories as if they were in the current directory (Windows 7, OS/2) |
DRIVERQUERY | List installed drivers (Windows XP) |
DSADD | Add objects to (active) directory |
DSGET | Display (active) directory object properties |
DSMOD | Modify objects in (active) directory |
DSMOVE | Move or rename objects in (active) directory |
DSQUERY | Query (active) directory |
DSRM | Remove object from (active) directory |
DVDBURN | Write ISO images to DVD (Windows Server 2003 Resource Kit tool) |
ECHO | Display text on screen |
EDIT | Text editor in MS-DOS 5+ (requires QBASIC) |
EDLIN | Line editor in MS-DOS 4- |
ENDLOCAL | Terminate local environment |
EPAL | Elevated Priviliges Application Launcher (free Microsoft download) |
ERASE | Delete one or more files |
EVENTCREATE | Write an event in one of the event logs |
EVENTQUERY.VBS | List events and event properties |
EVENTTRIGGERS | Display and configure "Event Triggers" that monitor and act upon the occurrence of NT Log Events of given criteria |
EXIT | Terminate a batch file or command prompt |
EXPAND | Expand compressed files or folders on NTFS volumes |
EXPLORER | Open a folder in an Explorer window |
EXTRACT | Extract compressed files |
EXE2BIN | Convert .EXE files to binary format (DOS) |
FASTOPEN | Open DOS programs faster by memorizing their locations on disk (DOS) |
FC | Compare files |
FDISK | Manipulate harddisk partitions and logical drives |
FILEVER | Display a program file's version |
FIND | Search files or standard output |
FINDRAMD | Find the RAM drive letter |
FINDSTR | Search files or standard output with advanced options |
FOR | Loop through a set of files or variables |
FORCEDOS | Force XP to start the specified program in the MS-DOS subsystem |
FORFILES | Selects and executes a command on a file or set of files |
FORMAT | Format disks (intialize file system) |
FSUTIL | Manage FAT and NTFS file systems (XP) |
FTP | File Transfer Protocol client |
FTYPE | Display or define the "Open" command for a file type |
GETMAC | Display MAC address for local or remote network adapters (XP and later) |
GETTYPE | Queries the OS type, version or SP and returns it as an errorlevel (Resource Kit tool) |
GOTO | Jump to a label or subroutine |
GPRESULT | Enable display of extended character set in graphics mode |
GRAFTABL | Enable display of extended character set in graphics mode |
GWBASIC | Basic interpreter for MS-DOS up to version 4 |
HELP | Display help text for a command |
ICACLS | Display, modify, backup, or restore ACLs for files and directories (Windows 7) |
IEXPRESS | (Installation) script packager (XP) |
IF | Test statement |
IFCONFIG | Configure network adapters |
INUSE | Replace locked files on the next reboot (Resource Kit tool) |
IPCONFIG | Configure network adapters |
JT | Command line scheduler for Windows 2000 and later (Resource Kit utility) |
LABEL | Show or set a disk's volume label |
LFNFOR | Tells the FOR command to use either "8.3" or long file names |
LH | Load TSRs in high memory (same as LOADHIGH) |
LOADHIGH | Load TSRs in high memory (same as LH) |
LOCK | Grant 16-bits DOS programs direct access to a disk |
LOGMAN | Command line Performance Monitor management tool |
LOGOFF | Logoff/terminate Windows TS sessions or (local) OS/2 |
MAKECAB | Compress and add files to new or existing .CAB files (equivalent of DIANTZ) |
MD | Create a new (sub)directory (same as MKDIR) |
MEM | Check memory usage (MS-DOS and 16-bits sessions only) |
MKDIR | Create a new (sub)directory (same as MD) |
MKLINK | Create a symbolic link |
MODE | Configures system devices |
MORE | Displays output one screen at a time |
MOUNTVOL | Create, delete or list volume mount points (XP) |
MOVE | Move or rename files or folders |
MSD | Query for basic system configuration information (MS-DOS 6 & 7) |
MSG | Send a popup message to TS users/sessions |
MSIEXEC | Install, modify, and perform operations on Windows Installer from the command line |
MSINFO32 | Query for basic system configuration information (Windows 2000+) |
NBTSTAT | Display protocol statistics and current TCP/IP connections using NBT |
NET | Command line NetBIOS tool |
NETDOM | Manage domains and trust relationships (join computers to a domain, rename computers, and more) |
NETSH | Command line network configuration tool for Windows XP and later |
NETSTAT | Command line NetBIOS tool |
NLTEST | Command line Netlogon management tool |
NOTEPAD | Text editor (GUI editing, command line & GUI printing) |
NSLOOKUP | Diagnose DNS infrastructure |
NTBACKUP | Backup files to any Windows supported media |
OCSETUP | Windows Optional Component Setup (Windows 7) |
ODBCCONF | MDAC ODBC configuration tool |
OPENFILES | List or disconnect open files and folders |
PATH | Display or change the program search path |
PATHPING | Extended PING utility |
PAUSE | Wait until a key is pressed |
PENTNT | Detects floating point division error (if present) in the Pentium chip, disables floating point hardware, and turns on floating point emulation |
PING | Check the TCP/IP connection to a remote IP address |
PING6 | IPv6 version of PING |
PKGMGR | Command line package manager |
POPD | Move back to the last directory that was "pushed" on the stack by PUSHD |
POWERCFG | Configure power management (Windows Server 2003) |
Print a text file | |
PRINTUI.EXE | Shorthand command for RUNDLL32 PRINTUI.DLL,PrintUIEntry (Windows 7) |
PRNCFG.VBS | Configure or display printer configuration information |
PRNDRVR.VBS | Add, delete, or list printer drivers |
PRNJOBS.VBS | Pause, resume, cancel, or list print jobs |
PRNMNGR.VBS | Add, delete, or lists printers or printer connections; set or display default printer |
PRNPORT.VBS | Create, delete, or lists standard TCP/IP printer ports; display or change port configuration |
PRNQCTL.VBS | Print a test page; pause or resume a printer; clear a printer queue |
PROMPT | Configure the DOS prompt string |
PUBPRN.VBS | Publish a printer in Active Directory |
PUSHD | Move to a new directory, "pushing" the current directory on the stack |
QAPPSRV | Query available TS application servers |
QBASIC | Basic interpreter for MS-DOS 5+ |
QCHAIN | Install multiple hotfixes with only a single reboot |
QFARM | Query local TS farm |
QPROCESS | Query TS servers for running processes |
QSERVER | Query available ICA-enabled TS servers |
QUERY | Query TS resources |
QUSER | Query logged on TS users |
QWINSTA | Query TS sessions |
RASDIAL | Use existing RAS/DUN connections |
RASPHONE | Manage RAS/DUN connections |
RD | Remove a (sub)directory (same as RMDIR) |
READLINE | Read a single line from standard output |
RECOVER | Recover readable information from a bad or defective disk (may sometimes destroy other files in the process) |
REG | Read and write the registry (W2K and later) |
REGEDIT | Read and write the registry (GUI as well as command line) |
REGEDT32 | Read and write the registry (includes setting access permissions) |
REGINI | Read and write the registry, including permissions (NT4 Resource Kit, native in XP) |
REGSVR32 | Register .DLL & .OCX files as command components in the registry |
REM | Insert comment line |
REN | Rename a file or folder (same as RENAME) |
RENAME | Rename a file or folder (same as REN) |
REPLACE | Copy only files that already exist in the target directory, or copy only files that don't exist yet |
RESET SESSION | Reset TS session subsystem defaults |
RESTORE | Restore files backed up with BACKUP (from the exact same DOS version) |
RMDIR | Remove a (sub)directory (same as RD) |
ROBOCOPY | Copy directories, optionally including subdirectory trees and/or permissions, and optionally deleting removed files in the target directory (Resource Kit utility, native in Windows 7) |
ROUTE | Display and modify the entries in the local IP routing table |
RUNAS | Run a command with different credentials (will always prompt for a password; use CPAU if you need to make this unattended) |
RUNDLL | Command line wrapper for 16-bit DLL routines |
RUNDLL32 | Command line wrapper for 32-bit DLL routines |
SC | Command line services managment (XP) |
SCHTASKS | Command line task scheduler (XP) |
SECEDIT | Configure and analyze system security by comparing your current configuration to a template (Windows 2000+) |
SET | Manipulate environment variables |
SETLOCAL | Start local environment |
SHADOW | Monitor or take over a TS session |
SHELL | Primary command interpreter specification in CONFIG.SYS |
SHIFT | Parse command line variables in batch files |
SHUTDOWN | Shutdown a computer (Resource Kit utility for NT 4 and 2000, native in XP and later) |
SORT | Read a file or standard input and return it sorted alphabetically |
START | Run a command in a separate process, or run a file with its default associated application |
SUBINACL | Display/modify ACEs for file and folder permissions, ownership and domain (Resource Kit utility) |
SUBST | Associate or disassociate a drive alias with a path |
SYSTEMINFO | Query for basic system configuration information |
TASKKILL | Kill an active process (XP) |
TASKLIST | List active processes (XP) |
TIME | Display & manipulate system time |
TITLE | Set the window title for the command prompt window |
TRACERT | Analyze the response times on the route to a remote IP address |
TRACERT6 | IPv6 version of TRACERT |
TRACERTE | Analyze the response times on the route to a remote IP address (OS/2) |
TREE | "Graphically" display the folder structure of a drive or path |
TRUENAME | Display the real fully qualified path |
TSCON | Attach a TS user session to a terminal session |
TSDISCON | Disconnect a TS terminal session |
TSKILL | Terminate a process in a TS session |
TSPROF | Copy/update TS user configuration information |
TSSHUTDN | Shut down or reboot a TS server |
TYPE | Display text file content in console |
TZCHANGE | Configure/edit time zones |
UNLOCK | Revoke 16-bits direct disk access granted by the LOCK command |
VER | Display the OS version |
VERIFY | Enable/disable verification of disk write operations |
VHDMOUNT | Mount and access VHD files as virtual disk drives (part of Virtual Server 2005 R2 SP1) |
VOL | Display a disk's volume label |
WINMSD | Query for basic system configuration information (for Windows NT 4; in Windows 2000 WINMSD was replaced by MSINFO32) |
WINMSDP | Command line helper tool for WINMSD |
WMIC | Query & manipulate objects in WMI (XP Pro and later) |
WSCRIPT | GUI mode interpreter for VBScript/JScript |
WUPDMGR | Start Windows Update in Internet Explorer |
XCACLS | Read and set file access permissions (improved CACLS from the Resource Kits) |
XCOPY | Copy files & directories with advanced options |
Source from http://www.robvanderwoude.com/batchcommands.php