- Jun 11, 2012
- 114
Helping codes for Batch files
Hi friends! today I am going to give you some helping codes for Batch files. Assoc - Displays or modifies file extension associations.
Attrib - Displays or changes file attributes.
Bootcfg - Used to configure, query, change or delete the boot entry settings in the boot.ini file.
Break - Sets or clears extended CTRL+C checking.
Bcdedit - Sets properties in boot database to control boot loading.
Cacls - Displays or modifies access control lists (ACLs) of files.
Call - Call one batch program from another
CD - Change Directory - Changes the directory it reads from or displays the name of the current directory.
Chkdsk - Checks a disk and displays statusreport.
Chkntfs - Check the NTFS file system
Choice - Allows uses to select one item from a list of choices and returns the index of the selected choice.
Cipher - Displays or alters the encryption of directories on NTFS paritions.
CleanMgr- Automated cleanup of Temp files, recycle bins, etc.
Cls - Clears the screen.
Cmd - Starts a new instance of the Windows command interpreter.
Cmdkey - Creates, displays, and deletes stored user names and passwords.
Color - Sets the default console foreground and backgroup colors.
Comp - Compares the contents of two files or sets of files.
Compact - Displays or alters the compression of files on NTFS partitions.
Convert - Converts FAT volumes to NTFS.
Copy - Copies one or more files to another location.
Date - Displays or sets the date.
Defrag - Defragments the hard drive.
Del - Deletes one or more files.
Dir - Displays a list of files and folders.
Diskcomp - Compare the contents of one floppy disk to another.
Diskpart - Displays or configures disk partition properties.
Doskey - Edits command lines, recalls Windows commands, and creates macros.
Driverquery - Displays current device driver status and properties.
Echo - Displays messages, or turns command echoing on or off.
Endlocal - End localisation of environment changes in a batch files.
Erase - Deletes one or more files.
Eventcreate - Add a message to the Windows event log.
Exit - Exits Command Prompt.
Expand- Expands one or more compressed files.
FC - Compares two files.
Find - Searches for a text string in a file or files.
Findstr - searches for strings in files.
For - Runs a specified command for each file in a set of files.
Forfiles - Selects a file, or set of files, and executes a command on that file.
Format - Formats a disk for use with Windows.
Fsutil - Displays or configures the file system properties.
Ftp - Transfers files to and from a romcputer running an FTP server service.
Ftype - Displays or modifies file types used in file extension associations.
Goto - Directs the Windows command interpreter to a labeled line in a batch program.
Gpupdate - Updates group policies settings.
Graftabl - Enables Windows to display an extended character set in graphics mode.
Help - Provides help information for Windows commands.
Icacls - Display, modify, backup, or restore ACLs for files and directories.
If - Performs conditional processing in batch programs.
Ipconfig - IP configuration.
Label - Creates, changes, or deletes the volume label of a disk.
MD - Creates a directory.
MKDir - Creates a directory
Mklink - Creates a symbolic link.
Mode - Configures a system device.
More - Displays output one screen at a time.
Mountvol - Creates, deletes, or lists a volume mount point.
Move - Moves one or more files from one directory to another directory.
Msg - Send a message to a user.
Msiexec - Microsoft Windows Installer.
Mstsc - Remote Desktop
Net - Manage network resources
Netsh - Configure network interfaces.
Nbtstat - Displays protocol statistics and current TCP/IP connections using NBT.
Netstat - Displays protocol statistics and current TCP/IP network connections.
Nslookup - Name server lookup
Openfiles - Displays files opened by remote users for a file share.
Path - Displays or sets a search path for executable files.
Pathping - Trace route plus network latency and packet loss.
Pause - Suspends processing of a batch file and displays a message.
Perfmon - Performance monitor
Ping - Test a network connection
Popd - Restores the previous value of the current directory saved by PUSHD.
Powercfg - Configures power settings.
Print - Prints a text file.
Prompt- Changes the Windows command prompt.
Pushd - Saves the current directory then changes it.
Rasdial - Manage RAS connections
Rasphone - Manage RAS connections
RD - Removes a directory (folder).
Recover - Recovers readable information from a bad or defective disk.
Reg - Registry: Read, set, export, delete, and add keys and values.
Regedit - Import or export registry settings.
Regsvr32 - Register or unregister a DLL.
Regini - Change Registry permissions.
REM - Records comments in batch files.
REN - Renames a file or files.
Rename - Renames a file or files.
Replace - Replaces files.
RMDIR - Removes a directory (folder).
Robocopy - Advanced utility to copy files and directory trees.
Route - Manipulate network routing tables.
RunAs - Executes a program uder a different user account.
Rundll32 - Runs a DLL command.
SC - Displays or configures services.
Schtasks - Schedules a command to run at a specific time.
Set - Displays, sets, or removes Windows environment variables.
Setlocal - Begins localization of environment changes in a batch file.
Setx - Set environment variables permanently.
SFC - System File Checker
Shift - Shifts the position of replaceable parameters in batch files.
Shutdown - Allows proper local or remote shutdown of machine.
Slmgr - Software Licensing Management
Sort - Sorts input.
Start - Starts a separate window to run a specified program or command.
Subst - Associates a path with a drive letter.
Systeminfo - Displays machine specific properties and configuration.
TaskList - Displays all currently running tasks including services.
Taskkill - Kill or stop a running process or application.
Time - Displays or sets the system time.
Timeout - Delay processing of a batch file.
Title - Sets the window title for a batch file.
Tracert - Trace route to a remote host.
Tree - Graphically displays the directory structure of a drive or path.
Type - Displays the contents of a text file.
Typeperf - Write performance data to a log file.
Ver - Displays the Windows version.
Verify - Tells Windows whether to verify that your files are written correctly to a diskY .
Vol - Display a disk volume label and serial number.
Where - Locate and display files in a directory tree.
Whoami - Output the current Username and domain.
WMIC - WMI commands.
Wuauclt - Windows Update