1. Lệnh Ping : Cú pháp: Code: ping ip/host [/t][/a][/l][/n]


Other items you may want to clear out



tải về 1.67 Mb.
Chế độ xem pdf
trang21/92
Chuyển đổi dữ liệu18.05.2022
Kích1.67 Mb.
#52014
1   ...   17   18   19   20   21   22   23   24   ...   92
Cac lenh co ban trong DOS

Other items you may want to clear out...
Application Data
Most files in Application Data are things like browser bookmark files - best left alone. 
However some applications (e.g. MS Access) leave large files in application data which you 
probably don’t need in a roaming profile, these can be selectively deleted with a batch script 
like 
this

Recent files
To clear the shortcuts for Start, Documents 
cd %userprofile%\Recent
echo y| del *.* 


Notice that the 'Recent' folder may contain many more shortcuts than are set to display under 
Start, Documents. 
Locked files
(Typically IE temp files or the Offline cache) 
This works on any version of NT, 2000 or XP 
Close all applications 
Open a command prompt 
Click Start, and then Shut Down 
Simultaneously press CTRL+SHIFT+ALT.
While you keep these keys pressed, click Cancel in the Shut Down Windows dialog box.
In the command prompt window, navigate to the cache location, and delete all files from the 
folder (DEL /s)
At the command prompt, type explorer, and then press ENTER. 
”Then will I sprinkle clean water upon you, and ye shall be clean: from all your filthiness, and 
from all your idols, will I cleanse you“ ~ Ezekiel 36:25 
CLIP.exe
 (
Resource Kit 
/ Windows 7) 
Copy the result of any command to the Windows clipboard. 
Syntax 
command | CLIP 
CLIP < filename.txt 
When using clip in a batch script you should warn the user that their clipboard is about to be 
overwritten.
 
 
For Example:
DIR | CLIP
 
DATE /t | CLIP 
“The stupid neither forgive nor forget, the naive forgive and forget, the wise forgive but do not 
forget” ~ Thomas Szasz (The second sin)
CMD.exe
 
Start a new CMD shell and (optionally) run a command/executable program. 
Syntax 
CMD [charset] [options
CMD [charset] [options] [/c Command]
CMD [charset] [options] [/k Command]
Options
/C Run Command and then terminate 
/K Run Command and then return to the CMD prompt. 
This is useful for testing, to examine variables 
Command : The command, program or batch script to be run. 
This can even be several commands separated with '
&
'  
(the whole should also be surrounded by "quotes") 
/T:fg Sets the foreground/background 
colours
  


/X Enable extensions to CMD.EXE 
/Y Disable extensions to CMD.EXE
/A Output ANSI characters 
/U Output UNICODE characters (UCS-2 le) 
These options will affect 
piping or redirecting
 to a file. 
Most common text files are ANSI, use these switches 
when you need to convert the character set. 
/D Ignore registry AutoRun commands 
HKLM | HKCU \Software\Microsoft\Command Processor\AutoRun 
/F:ON Enable auto-completion of pathnames entered at the CMD prompt 
/F:OFF Disable auto-completion of pathnames entered at the CMD 
prompt (default) 
At the command prompt 
Ctrl-D
gives fol

tải về 1.67 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   17   18   19   20   21   22   23   24   ...   92




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương