PART 1 :
1. CLS: Xoá màn hình
2. ECHO: Hiển thị nội dung chuỗi theo sau. Cú pháp: Echo [Chuỗi]
Ví dụ: Echo Giải thích lệnh này
3. VER: Hiển thị Version Dos hiện hành của hệ thống
4. VOL: Hiển thị và cho phép chỉnh sửa tên nhãn đĩa. Cú pháp: VOL [ổ đĩa:]
Ví dụ: VOL C:
5. CD: Hiển thị hay chuyển đổi thư mục hiện hành.
Ví dụ: CD C:\Bat chuyển đổi thư mục hiện hành từ C:\Window> Sang C:\Bat
6. COPY: Sao chép ( các) tập tin vào 1 thư mục hay ổ đĩa. Cú pháp: Copy
[ổ đĩa:]\[Đường dẫn]\[(các) tập tin nguồn] [ổ đĩa:]\[Đường dẫn đích]
Ví dụ: Copy C:\Windows\Baitap1.txt D:\LuuTru
7. DIR: Liệt kê danh sách tập tin trong thư mục chỉ định. Cú pháp: DIR [ổ đĩa:]\[Đường dẫn]\[tên thư mục]
Khoá chuyển:
/P: Liệt kê từng trang màn hình
/W: Liệt kê theo chiều ngang màn hình
Ngoài ra còn có các khoá: /A, /O, /S, /B, /L, /C, /CH
Ví dụ: Dir *.*/s/b
8. DISKCOPY: Sao chép 1 đĩa mềm. Cú pháp: Diskcopy [đĩa nguồn:] [đĩa đích:]
Ví dụ: DiskCopy A: A:
9. FORMAT: Tạo dạng đĩa để đưa vào sử dụng.
Cú pháp: FORMAT [ổ đĩa:] [/s] [/f:Size] [/q] [/u] [/v: nhãn đĩa] [/b] [/c]
Ví dụ: Format C: /s Định dạng ổ đĩa C và copy các file hệ thống chép vào để ổ đĩa này có khả năng khởi động được.
Ý nghĩa các khoá chuyển:
/S: Tạo một ổ đĩa có khả năng khởi động
/F: Tạo dạng theo kích thước chỉ định
/Q: Thực hiện tạo dạng nhanh (Quick format )
/U: Tạo dạng không điều kiện (Không giữ lại thông tin UnFormat )
/V: Đặt tên nhãn cho đĩa được tạo dạng
/B: Chừa khoảng trống để chép tập tin hệ thống sau này
/C: Thử nghiệm tất cả các sector để xem cón dùng được hay không
10. MD: Tạo thư mục con trong thư mục chỉ định (Maker Dir).
Cú pháp: MD [ổ đĩa:]\[đường dẫn]\[tên thư mục muốn tạo]
Ví dụ: MD C:\Bat Tạo 1 thư mục con tên BAT tại thư ục gốc C:\
11. RD: Xoá thư mục nếu thư mục đó rỗng. Cú pháp: RD [ổ đĩa:]\[đường dẫn]\[tên của thư mục rỗng]
Ví dụ: RD C:\WORK
12. Copy Con: Tạo mới 1 tập tin. Cú pháp: Copy Con [ổ đĩa:]\[đường dẫn]\[tên tập tin]
Ấn phím CTRL + Z để kết thúc tập tin.
Ví dụ: Copy Con C:\Baitap.txt sẽ tạo mới 1 tập tin Baitap.txt nằm ở thư mục C:\
13. REN: Đổi tên 1 tập tin. Cú pháp: REN [ổ đĩa:]\[đường dẫn]\[tên cũ tập tin] [ổ đĩa:]\[đường dẫn]\[tên mới tập tin]
Ví dụ: REN C:\BAITAP1.TXT C:\BT.TXT
14. DEL: Xoá thập tin. Cú pháp: DEL [ổ đĩa:]\[Đường dẫn]\[Tên tập tin]
Khoá chuyển: /P (yêu cầu khẳng định trước khi xoá)
Ví dụ: DEL C:\Windows\Baitap1.txt/P Dos sẽ xoá tập tin Baitap1.txt trong thư mục C:\Windows
15. MOVE: Di chuyển tập tin tới vị trí thư mục được chỉ định. Lệnh này cũng được dùng để đổi tên thư mục. Cú pháp:
MOVE [ổ đĩa:]\[đường dẫn]\[tên tập tin] [ổ đĩa:]\[đường dẫn]\[tên tập tin mới]
MOVE [ổ đĩa:]\[đường dẫn]\[tên cũ của thư mục] [ổ đĩa:]\[đường dẫn]\[tên mới của thư mục]
Khoá chuyển:
/Y: Chép đè không cần nhắc nhở
Ví dụ 1: Move C:\Work\Letter.txt A:\Mail di chuyển tập tin
Ví dụ 2: Move C:\NC C:\Norton đổi tên tập tin
16. TYPE: Hiển thị nội dung 1 tập tin văn bản. Cú pháp: Type [ổ đĩa:]\[đường dẫn]\[tên tập tin]
Ví dụ: Type C:\Baitap.txt
PART 2:
DIR : lệnh xem danh sách các thư mục (nội trú )
DIR [d:][path]<ten_thu_muc>
Ví dụ : C:>\DIR LUTUR\VANBAN (enter)
Tham số /p /s /w
p pause Liệt kê theo từng trang màn hình
s liệt kê cả thư mục con
w liệt kê theo hàng ngang
CD :(change directory) lệnh chuyển thư mục (nội trú )
Chuyển vị trí thư mục hiện hành đến thư mục #
CD [d:][path]<tenthumuc>
MD (meke directory) Lệnh tạo thư mục (nội trú )
Tạo 1thư mục mới trên đĩa
MD [d:][path]<tenthumuc>
Ví dụ : tạo muc luutru trên thư mục gốc ổ đĩa
C:\>MD luutru (enter)
REN (rename) đổi tên (nội trú )
REN [d:][path]<tencu> <tenmoi> entơ
TYPE Xem nội dung tệp tin(nội trú )
TYPE [d:][path]<tenthumuc>
DEL xóa thu muc (nội trú )
DEL [d:][path]<tenthumuc>
COPY copy thu muc (nội trú )
COPY [d:][path]<tenthumuc>
DATE xem và sửa đổi ngày tháng hệ thống
Cú pháp :DATE entơ
Muốn sửa ngày tháng thì sửa theo kiểu mẫu của hệ thống
TIME xem giờ
Cú pháp :TIME entơ
Ngoài ra còn có
xem phiên bản của HĐH (nội trú )
CÚ pháp VER entơ
Lệnh xóa màn hình
CLS entơ
Lệnh move (ngoại trú )
[d:][path] move<tenthumuc> [d1:][path1]<tenthumuc2>
Lệnh undelete : phục hội lệnh đã xóa (ngoại trú )
[d:][path] UNDELETE <tenthumuc> [d1:][path1 ]<tenthumuc>[thamso]
các tham số : [/ALL] [/List]
Lệnh ATTRIB (ngoại trú )
Xem thiết lập hủy thuộc tính cho tệp
[d:][path]ATTRIB[attributes] [d1:][path1]<tentep>[/S]
A: archive là thuộc tính lưu trữ
S system thuộc tính hệ thống
R Readonly thuộc tính chỉ đọc
H hide thuộc tính ẩn
/S kể cả các tệp có trong thu mục con
lệnh diskcopy (ngoại trú )
Copy đĩa mềm
[d:][path] DISKCOPY <D1> <D2> [/V] entơ
Điều kiện đĩa nguồn và đích cùng kích cỡ dung lượng
/V verity copy có kiểm tra
Dấu ? trong tên tệp có nghĩa tại đó có thể thay thế bất kỳ một ký tự nào
Dấu * trong phần tên hay phần mở rộng có nghĩa là đại diện cho phần tên hay phần còn lại của phần tên
Ví dụ : *.doc adfsd.doc ds732.doc dsf.doc
?ay.doc : bay.doc tay.doc hay.doc
Nội trú :(internal command )
lệnh được tệp command.com phân tích và thi hành
Chúng luôn thường trú trong bộ nhớ Ram sau khi khởi động MS DOS và thường được sử dụng
Ngoại trú (external command)
Là lệnh cho thực hiện một tệp chương trình lưu trên đĩa có phần mở rộng là COM hoặc EXE
Muốn sử dụng lệnh ngoại trú ta cần phải xác định vị trí tệp chứa chương trình trước khi đưa ra tên lệnh
Thứ Tư, 27 tháng 3, 2013
How to install Maven on Windows
Apache Maven
is not require to install on Windows as a service component, you just
need to download the Maven’s zip file, extract it and configure the
Windows environment path variable.
Tools Used :
If you see similar message, means your Apache Maven is installed successfully on Windows.
NOTE SPECIAL:
When run maven build failed and show error ANDROID_HOME
You must add ANDROID_HOME to Windows environment
Variable name : ANDROID_HOME
Variable value : E:\eclipse\SDK\adt-bundle-windows-x86_64-20130219_3\sdk
Tools Used :
- JDK 1.6
- Maven 2.2.1
- Windows 7
1. JDK and JAVA_HOME
Make sure JDK is installed, and “JAVA_HOME” variable is added in Windows environment variable, and point to the JDK folder.2. Download Apache Maven
Visit this Maven official website, choose a version and click on the download link, e.gapache-maven-2.2.1-bin.zip.3. Extract It
Extract the downloaded zip file. In this case, we extracted to d driver and renamed the folder, e.gD:\maven.
Note
That’s all, just folders and files, installation is NOT required on Windows.
That’s all, just folders and files, installation is NOT required on Windows.
4. Add MAVEN_HOME
Add a newMAVEN_HOME variable to the Windows environment, and point it to your Maven folder.5. Add PATH
UpdatePATH variable, append “Maven bin folder” path, so that you can run the Maven’s command everywhere.6. Verification
Done, to verify it, in command prompt, type “mvn –version“.C:\Documents and Settings\mkyong>mvn -version Apache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800) Java version: 1.6.0_13 Java home: C:\Program Files\Java\jdk1.6.0_13\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
NOTE SPECIAL:
When run maven build failed and show error ANDROID_HOME
You must add ANDROID_HOME to Windows environment
Variable name : ANDROID_HOME
Variable value : E:\eclipse\SDK\adt-bundle-windows-x86_64-20130219_3\sdk
Thứ Ba, 26 tháng 3, 2013
Cau Hinh Eclipse de chay Maven tot trong Eclipse
1. Setting JAVA_HOME
WINDOWS :
Window -->Preferences --> Java --> Installed JREs
Click Search . Point to C:\Program Files\Java\jdk1.7.0_17
Click Ok
3. Custom Run to Build Jar File for Maven Project
Run --> External Tool Configuations..
Add New Program
Put variables like following :
---- Location : E:\TRI\DOWNLOADS\apache-maven-3.0.5\bin\mvn.bat
----Working Directory : ${workspace_loc:/robotium-solo}
----Argument : clean install
WINDOWS :
- Right-click the My Computer icon on your desktop and select Properties.
- Click the Advanced tab.
- Click the Environment Variables button.
- Under System Variables, click New.
- Enter the variable name as
JAVA_HOME. - Enter the variable value as the installation path for the Java Development Kit.(Example : C:\Program Files\Java\jdk1.7.0_17)
- Click Ok
Window -->Preferences --> Java --> Installed JREs
Click Search . Point to C:\Program Files\Java\jdk1.7.0_17
Click Ok
3. Custom Run to Build Jar File for Maven Project
Run --> External Tool Configuations..
Add New Program
Put variables like following :
---- Location : E:\TRI\DOWNLOADS\apache-maven-3.0.5\bin\mvn.bat
----Working Directory : ${workspace_loc:/robotium-solo}
----Argument : clean install
Thứ Hai, 25 tháng 3, 2013
Chủ Nhật, 24 tháng 3, 2013
Performing Git operations in Eclipse
10.1. Basic operations
Once you have placed a project under version control you can start using team operations on your project. The team operations are available via right-click on your project or file.The most important operations are described in the following list. Select:
-
Team → Add to index
to add the selected resource(s) to the index of Git.
-
Team → Commit, to open the commit dialog for committing to your Git repository.
-
Team → Create Patch...
to create a patch
-
Team → Apply Patch..
to apply a patch to your repository
-
Team → Ignore
to add the file to a .gitignore file
-
Team → Show in History
to display the selection the
History
view.
If you select a project in Eclipse you can use additional team operations from the context menu.
-
Team → Pull
to pull in changes from your remote Git repository
-
Team → Fetch
to fetch the current state of your remote tracking branch
-
Team → Switch To
to switch or create new branches
-
Team → Push
to push changes to your remote Git repository
-
Team → Tag
to create and manage tags.
EGit supports merging of branches to add the changes of one
branch
into another. Select your project
and
Team → Merge
to start the merge dialog.
If you pull in
changes or merge a branch and you have
conflicting changes, EGit will
highlight the affected files. EGit also
supports the resolution of these merge conflicts.
Right-click on a file with merge conflicts and select Team → Merge Tool.
This opens a dialog, asking you which merge mode you would like to use. The easiest way to see the conflicting changes is to use the Use HEAD (the last local version) of conflicting files as merge mode. This way you see the original changes on the left side and the conflicting changes on the right side.
You can manually edit the text on the left side or use the Copy current change from right to left button to copy the conflicting changes from right to left.
Once you have manually merged the changes, select Team → Add from the context menu of the resource to mark the conflicts as resolved and commit the merge resolution via Team → Commit.
Right-click on a file with merge conflicts and select Team → Merge Tool.
This opens a dialog, asking you which merge mode you would like to use. The easiest way to see the conflicting changes is to use the Use HEAD (the last local version) of conflicting files as merge mode. This way you see the original changes on the left side and the conflicting changes on the right side.
You can manually edit the text on the left side or use the Copy current change from right to left button to copy the conflicting changes from right to left.
Once you have manually merged the changes, select Team → Add from the context menu of the resource to mark the conflicts as resolved and commit the merge resolution via Team → Commit.
Git amend allows to adjust the last commit. For example you can
change the commit message. The Git Staging view allows you to perform
the
Git amend command via the highlighted button in the following
screenshot.
Đăng ký:
Bài đăng (Atom)
Học lập trình web căn bản với PHP
Bài 1: Các kiến thức căn bản Part 1: https://jimmyvan88.blogspot.com/2012/05/can-ban-lap-trinh-web-voi-php-bai-1-cac.html Part 2: https://...
-
IMindMap 8.0.4 iMindMap là công cụ tuyệt vời để vẽ bản đồ tư duy đem mọi chi tiết trong đầu bạn ra thành các ý tươgnr, để nắm bắt ý tư...
-
1. Download Bamboo in : http://www.atlassian.com/software/bamboo/download?os=linux cd ~ mkdir BAMBOO cd BAMBOO wget http://www.atlassia...
-
1.Giới thiệu về Vim Vim – Vi iMprove là bản cải thiện của Vim – một trình soạn thảo phổ biến trên Unix. Vim có tính cấu hình rất cao ...