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



tải về 1.67 Mb.
Chế độ xem pdf
trang28/92
Chuyển đổi dữ liệu18.05.2022
Kích1.67 Mb.
#52014
1   ...   24   25   26   27   28   29   30   31   ...   92
Cac lenh co ban trong DOS

Permanent deletion 
Deleting a file will not prevent third party utilities from un-deleting it again. Secure file deletion 
utilities are available, however for casual use, you can turn any file into a zero-byte file to 
destroy the file allocation chain like this: 
TYPE nul > C:\examples\MyFile.txt 
DEL C:\examples\MyFile.txt
Undeletable Files
Files are sometimes created with the very long filenames or reserved names: CON, AUX, 
COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, NUL
To delete these use the syntax: 
DEL \\.\C:\somedir\LPT1
Alternatively 
SUBST
 a drive letter to the folder containing the file. 
If a file (or folder) still appears to be 'undeletable' this is often caused by the indexing 
service

Stopping the service will often enable the file to be deleted. 
Delete Locked files
(Typically IE temp files or the Offline cache) 
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. 
DELTREE
Older versions of Windows had the DELTREE command that deletes all files and sub folders. 
The script below, DelTree.cmd can replicate this functionality: 
:: DelTree.cmd 
:: Remove all files and subfolders but NOT the root folder 
:: From tip 617 at JsiFAQ.com 
@echo off 
if "%1"=="" goto:eof 
pushd %1 
del /q *.*
for /f "Tokens=*" %%G in ('dir /B') do rd /s /q "%%G" 


popd
Normally DEL will display a list of the files deleted, if 
Command Extensions
 are disabled; it will 
instead display a list of any files it cannot find. 
DEL is an 
internal
 command. ERASE is a synonym for DEL 
“It devoured my paper, it was a really good paper” - 
Ellen Feiss
 
DELPROF
 (
Resource Kit

Delete windows user profiles. 
Syntax 
DELPROF [options days
Key 
/Q Quiet, no confirmation. 
/I Ignore errors and continue deleting. 
/P Prompts for confirmation before deleting each profile. 
/C:\\computer_name 
Delete profiles on a remote computer. 
/D:Number_of_days 
Only delete profiles that have been inactive for 
'X' Number of days (or greater) 
/R Delete roaming profile cache only ## 
## = New in version 5.2 (XP resource kit) 

tải về 1.67 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   24   25   26   27   28   29   30   31   ...   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