Conidtion Statement
> if not defined JAVA_HOME goto noJavaHome
:noJavaHome
%cd% is available either to a batch file or at the command prompt and expands to the drive letter and path of the current directory (which can change e.g. by using the CD command)
%~dp0 is only available within a batch file and expands to the drive letter and path in which that batch file is located (which cannot change). It is obtained from %0 which is the batch file's name.
Ipconfig
Ipconfig is a DOS utility that can be used from MS-DOS and a MS-DOS shell to display the network settings currently assigned and given by a network. This command can be utilized to verify a network connection as well as to verify your network settings.
/all Display full configuration information.
/release Release the IP address for the specified adapter.
/renew Renew the IP address for the specified adapter.
/flushdns Purges the DNS Resolver cache.
/registerdns Refreshes all DHCP leases and re-registers DNS names
/displaydns Display the contents of the DNS Resolver Cache.
/showclassid Displays all the dhcp class IDs allowed for adapter.
/setclassid Modifies the dhcp class id.
nslookup
MS-DOS utility that enables a user to look up an IP address of a domain or host on a network.
http:/
netstat
The netstat command is used to display the TCP/IP network protocol statistics and information.
-a Displays all connections and listening ports.
-e Displays Ethernet statistics. This may be combined with the -s option.
-n Displays addresses and port numbers in numerical form.
-p proto Shows connections for the protocol specified by proto; proto may be TCP or UDP. If used with the -s option to display per-protocol statistics, proto may be TCP, UDP, or IP.
-r Displays the routing table.
-s Displays per-protocol statistics. By default, statistics are shown for TCP, UDP and IP; the -p option may be used to specify a subset of the default.
interval Redisplays selected statistics, pausing interval seconds between each display. Press CTRL+C to stop redisplaying statistics. If omitted, netstat will print the current configuration information once.
tracert
The tracert command is used to visually see a network packet being sent and received and the amount of hops required for that packet to get to its destination.
-d Do not resolve addresses to hostnames.
-h maximum_hops Maximum number of hops to search for target.
-j host-list Loose source route along host-list.
-w timeout Wait timeout milliseconds for each reply.
tracert computerhope.com
1 169 ms 190 ms 160 ms slc1-tc.xmission.com [166.70.1.20]
2 159 ms 160 ms 190 ms cisco0-tc.xmission.com [166.70.1.1]
3 165 ms 189 ms 159 ms www.computerhope.com [166.70.10.23]
telnet
Enables a user to telnet to another computer from the command prompt.
The availability of this command has only been listed as Windows 2000 and Windows XP because these are the only two versions of Microsoft Windows that support the telnet command from the command prompt (with additional switches). Additional information and help about using telnet from any version of Windows can be found on our telnet help page.
close close current connection
display display operating parameters
open connect to a site
quit exit telnet
set
set options (type 'set ?' for a list)
NTLM Turn ON NTLM Authentication.
LOCAL_ECHO Turn ON LOCAL_ECHO.
TERM x (where x is ANSI, VT100, VT52, or VTNT)
CRLF Send both CR and LF
status print status information
unset unset options (type 'unset ?' for a list)
NTLM Turn OFF NTLM Authentication.
LOCAL_ECHO Turn OFF LOCAL_ECHO.
CRLF Send only CR (no LF is sent)
?/help print help information
Last updated 614 days ago by Rajesh Kumar