Thứ Năm, 23 tháng 7, 2015

Chắc hẳn nhiều bạn khi cài win8, 8.1, and higher 64bit thì bị gặp lỗi không thể format phân vùng để cài đặt: " Failed to format the selected partition.[ error: 0x8004242d] ", khi click vào xem chi tiết lỗi thì nhận được thông báo sau:

Rất ức chế phải không ạ :(

Nguyên nhân lỗi đã được nêu rõ, "Trên EFI systems, windows chỉ có thể được cài đặt trên trên GPT disks"

Có một số cách khắc phục điều này:

Cách 1: Các bạn chuyển đổi sang GPT, về lợi ích của gpt so với mbr, cách chuyển đổi từ mbr -> gpt, xem thread của VN-ZOOM UEFI Team

Cách 2: Là cách mà mình sẽ hướng dẫn sau đây(nhanh, gọn, và dành cho những ai lười giống mình :))

Cách này cũng có 2 phương án:

-Một là sửa bộ cài win:

- Sau khi attract bộ cài win ra usb hoặc ổ cứng, các bạn chú ý xóa những thư mục(hoặc file) sau:
Thư mục efi\boot các bạn xoá file bootx64.efi



Thư mục efi\microsoft\boot các bạn xoá các file cdboot.efi, cdboot_noprompt.efi, efisys.bin, efisys_noprompt.bin, memtest.efi


- Hai là lựa chọn khi cài usb:
Lúc cắm usb để cài win, trên máy asus, khi nhấn phím esc để boot vào thiết bị gắn ngoài, một số máy khác như del, sony vaio cũng tương tự, thay vì các bạn chọn dòng có chữ UEFI thì các bạn chọn dòng không có chữ UEFI nhé, như hình dưới các bạn sẽ chọn dòng KingstonDataTraveler 108PMAP, được mình đánh dấu màu cam
(2 dòng này chỉ khác nhau mỗi chữ UEFI)



Okie vậy là bạn đã khắc phục được lỗi ở trên rồi, lời khuyên là bạn nào nhận thấy các ưu điểm của uefi thì nên chuyển đổi sang UEFI, còn bạn muốn nhanh thì làm giống mình:)

Thứ Bảy, 27 tháng 6, 2015

Khi chạy một ứng dụng từ máy ảo trong Eclipse, mặc dù đã build thành công trước đó nhưng bạn vẫn gặp lỗi khó chịu "Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace". Sau đây là cách khắc phục:
Bưới 1: Chuột phải vào Project, chọn properties
Bước 2: Chọn mục Java Build Path
Bước 3: Tại tab Libraries, chọn mục Android Dependencies, sau đó, click Remove
Bước 4: Click OK để hoàn thành.
Xem hình sau:

Thứ Năm, 25 tháng 6, 2015


Mình tình cờ biết được trang web này khi đang chém gió với một số anh em vn-zoom, các bạn chỉ cần truy cập vào http://web.archive.org/ sau đó gõ địa chỉ trang web cần xem ở quá khứ rồi nhấn Browse History, sau đó các bạn có thể chọn thời gian xem mà mình cần.
Chúc các bạn thành công.

Thứ Tư, 24 tháng 6, 2015



Phiên bản sdk mới nhất đến hiện tại là Revision 24.3.3 nhưng trong các sách hay các tutorial dạy android thì thường dùng các phiên bản cũ hơn. Các phiên bản này có sự khác nhau khiến cho người học cảm thấy khó khăn khi tiếp cận, vì vậy mình sẽ hướng dẫn các bạn cách tải bản cũ của adroid sdk tool.
Đầu tiên bạn vào trang này https://developer.android.com/tools/sdk/tools-notes.html sau đó các bạn nhìn mục Revisions nó sẽ hiện các phiên bản, ví dụ như
SDK Tools, Revision 24.3.3 (June 2015)
SDK Tools, Revision 24.3.2 (June 2015)
SDK Tools, Revision 24.3.1 (June 2015)

Sau đó các bạn thay đổi link sau
http://dl-ssl.google.com/android/repository/tools_rXXX-windows.zip
http://dl-ssl.google.com/android/repository/tools_rXXX-linux.zip
http://dl-ssl.google.com/android/repository/tools_rXXX-macosx.zip

XXX các bạn thay bằng phiên bản cần tải, ví dụ mình cần tải SDK Tools, Revision 24.3.1 (June 2015) cho windows thì mình sẽ sửa link thành
http://dl-ssl.google.com/android/repository/tools_r24.3.1-windows.zip

Chúc thành công.
Ngoài ra các bạn có thể tìm thấy các bản adt bundle tại đây http://downloads.puresoftware.org/files/android/adt-bundle/

Tham khảo thêm:
http://stackoverflow.com/questions/23456946/problems-with-new-adt-bundle
https://code.google.com/p/android/issues/detail?id=73102
http://stackoverflow.com/questions/27449206/what-is-the-final-version-of-the-adt-bundle
http://web.archive.org/web/20131129095326/http://developer.android.com/sdk/index.html#download

Liên quan: http://stackoverflow.com/questions/22755432/new-android-application-project-cant-create-blank-activity


Chủ Nhật, 21 tháng 6, 2015

VPN service Hola, which has millions of users, recently came under fire for not being as up front with their users as they should have been. In the past weeks it has been revealed that Hola does the following:
  • allows Hola users to use each others’ bandwidth
  • sells their users’ bandwidth to their sister company Luminati (which recently helped facilitate a botnet attack)
  • and, according to Vectra research, Hola can install and run code and additional software on their users’ devices without their users’ knowledge.
If you are an Hola user or if you know someone who uses Hola, please make sure you/they are aware of this.
The service, which can be downloaded either as an app or as a browser extension, is a peer-to-peer network that allows people to use other Hola users’ bandwidth to anonymize their browsing activities and to circumvent geo-restricted content.


What many users did not realize is that they were essentially exit nodes and other Hola users could use their bandwidth to carry out illegal activity, like accessing child pornography.
Additionally, Hola sells its users’ bandwidth to its sister company, Luminati. Prior to the end of May, Hola did not mention Luminati on its website. Luminati’s premium service, which was originally advertised as being an anonymization network, uses Hola’s users as nodes to redirect traffic through. Hola’s connection to Luminati was exposed after a Luminati client launched a DDOS attack on 8chan, using Hola’s network (users) as a botnet.
Researchers at Vectra, a security company that identifies cyber attacks, dug a little deeper and discovered that Hola can also download and install additional software without the user’s knowledge and can install and run code without the user’s knowledge as well. Furthermore, Vectra found that Hola contains a built in console, “zconsole”. Zconsole allows direct human interaction with an Hola node even when Hola is not being actively used by a user. With access to the console an attacker could, as Vectra points out, “accomplish almost anything” and launch a large and targeted attack.
What we can learn from this
There is one main lesson people should learn from the Hola situation: research the products you download and use.
What many people may not have been aware of in this situation was how their bandwidth could be abused by fellow Hola users and how much control Hola had. A VPN helps you to anonymize all of your browsing activities – and to access content in geo-restricted regions by redirecting it through other servers. This can, for example, be useful if you travel or live abroad and want to access content from your home country.
What you should research before choosing a VPN service
Before deciding which VPN service to use, research the VPN provider and make sure the provider you choose is trustworthy. Find out what methods they use. If they use servers to redirect traffic through, make sure you know who owns the servers, what they do with the data that flows through the servers and whether or not they keep your data or sell it to third parties.
Avast for example, offers free antivirus, but our Avast SecureLine VPN is a premium service. We charge for our VPN services, because we pay extra to own and maintain servers around the world to redirect traffic through. We do not log the data that flows via our VPN services.
Know how much control your VPN service really has Hola is available as an app and browser extension and as mentioned above, Vectra found that Hola is able to do a lot more than just redirect your traffic. Hola can download and run additional code through your browser, without your knowledge. Of course a VPN service is always going to have access to your personal data (otherwise it wouldn’t work). However, even if they don’t provide a VPN feature, browser extensions have immense control over your browser that most users may not be fully aware of.
“Browser extensions can see everything you see in your browser, as well as everything you type in your browser, including passwords. Untrustworthy browser extension vendors can easily misuse this data and it is therefore extremely important that users be careful when choosing which browser extensions to install. On top of that, browser extensions can also manipulate search results and slow down your browser.” Thomas Salomon, head of Browser Cleanup product development at Avast.
What you should do before downloading a browser extension
When deciding on whether or not you should download a browser extension, you should also first make sure the extension comes from a reliable and trusted source, read both professional and user reviews about the extension and read the extensions terms and conditions before downloading it.
What you should do if you have a bad extension installed on your browser If you are worried that you may have malicious extensions (they are often added when installing an otherwise legitimate program without you even noticing) installed on your browser or have an extension that is difficult to remove, you should run Avast Browser Cleanup. Avast Browser Cleanup is a tool that removes malicious and poorly rated add-ons and restores your browser to its initial and clean state. Avast Browser Cleanup is included in Avast and is now also available as a stand-alone product.
Keeping your browsing safe
Our browsing information is extremely valuable: we bank online, keep in touch with our loved ones via email and social media, search for everything under the sun on the Internet. Piece all this information together and you have someone’s complete identity, not something you want to hand over to just anyone.
VPNs and browser extensions, like Hola, become dangerous the minute they abuse their power, without openly informing their users of what they are doing. It is therefore vital that you are aware of what software you have installed on your computer and what extensions you have installed on your browser to keep your private information private.

Thứ Năm, 18 tháng 6, 2015

cmd


a   
   ADDUSERS Add or list users to/from a CSV file
   ADmodcmd Active Directory Bulk Modify
   ARP      Address Resolution Protocol
   ASSOC    Change file extension associations•
   ASSOCIAT One step file association
   AT       Schedule a command to run at a specific time
   ATTRIB   Change file attributes
b
   BCDBOOT  Create or repair a system partition
   BCDEDIT  Manage Boot Configuration Data
   BITSADMIN Background Intelligent Transfer Service
   BOOTCFG  Edit Windows boot settings
   BROWSTAT Get domain, browser and PDC info
c
   CACLS    Change file permissions
   CALL     Call one batch program from another•
   CERTREQ  Request certificate from a certification authority
   CERTUTIL Utility for certification authority (CA) files and services
   CD       Change Directory - move to a specific Folder•
   CHANGE   Change Terminal Server Session properties
   CHKDSK   Check Disk - check and repair disk problems
   CHKNTFS  Check the NTFS file system
   CHOICE   Accept keyboard input to a batch file
   CIPHER   Encrypt or Decrypt files/folders
   CleanMgr Automated cleanup of Temp files, recycle bin
   CLIP     Copy STDIN to the Windows clipboard
   CLS      Clear the screen•
   CMD      Start a new CMD shell
   CMDKEY   Manage stored usernames/passwords
   COLOR    Change colors of the CMD window•
   COMP     Compare the contents of two files or sets of files
   COMPACT  Compress files or folders on an NTFS partition
   COMPRESS Compress one or more files
   CONVERT  Convert a FAT drive to NTFS
   COPY     Copy one or more files to another location•
   Coreinfo Show the mapping between logical & physical processors
   CSCcmd   Client-side caching (Offline Files)
   CSVDE    Import or Export Active Directory data 
d
   DATE     Display or set the date•
   DEFRAG   Defragment hard drive
   DEL      Delete one or more files•
   DELPROF  Delete user profiles
   DELTREE  Delete a folder and all subfolders
   DevCon   Device Manager Command Line Utility 
   DIR      Display a list of files and folders•
   DIRQUOTA File Server Resource Manager Disk quotas
   DIRUSE   Display disk usage
   DISKPART Disk Administration
   DISKSHADOW Volume Shadow Copy Service
   DISKUSE  Show the space used in folders
   DOSKEY   Edit command line, recall commands, and create macros
   DriverQuery Display installed device drivers
   DSACLs   Active Directory ACLs
   DSAdd    Add items to active directory (user group computer) 
   DSGet    View items in active directory (user group computer)
   DSQuery  Search for items in active directory (user group computer)
   DSMod    Modify items in active directory (user group computer)
   DSMove   Move an Active directory Object
   DSRM     Remove items from Active Directory
e
   ECHO     Display message on screen•
   ENDLOCAL End localisation of environment changes in a batch file•
   ERASE    Delete one or more files•
   EVENTCREATE Add a message to the Windows event log
   EXIT     Quit the current script/routine and set an errorlevel•
   EXPAND   Uncompress CAB files
   EXTRACT  Uncompress CAB files
f
   FC       Compare two files
   FIND     Search for a text string in a file
   FINDSTR  Search for strings in files
   FOR /F   Loop command: against a set of files•
   FOR /F   Loop command: against the results of another command•
   FOR      Loop command: all options Files, Directory, List•
   FORFILES Batch process multiple files
   FORMAT   Format a disk
   FREEDISK Check free disk space
   FSUTIL   File and Volume utilities
   FTP      File Transfer Protocol
   FTYPE    File extension file type associations•
g
   GETMAC   Display the Media Access Control (MAC) address
   GOTO     Direct a batch program to jump to a labelled line•
   GPRESULT Display Resultant Set of Policy information
   GPUPDATE Update Group Policy settings
h
   HELP     Online Help
   HOSTNAME Display the host name of the computer
i
   iCACLS   Change file and folder permissions
   IEXPRESS Create a self extracting ZIP file archive
   IF       Conditionally perform a command•
   IFMEMBER Is the current user a member of a group
   IPCONFIG Configure IP
   INUSE    Replace files that are in use by the OS
l
   LABEL    Edit a disk label
   LODCTR   Load PerfMon performance counters
   LOGMAN   Manage Performance Monitor logs
   LOGOFF   Log a user off
   LOGTIME  Log the date and time in a file
m
   MAKECAB  Create .CAB files
   MAPISEND Send email from the command line
   MBSAcli  Baseline Security Analyzer
   MEM      Display memory usage
   MD       Create new folders•
   MKLINK   Create a symbolic link (linkd) •
   MODE     Configure a system device COM/LPT/CON
   MORE     Display output, one screen at a time
   MOUNTVOL Manage a volume mount point
   MOVE     Move files from one folder to another•
   MOVEUSER Move a user from one domain to another
   MSG      Send a message
   MSIEXEC  Microsoft Windows Installer
   MSINFO32 System Information
   MSTSC    Terminal Server Connection (Remote Desktop Protocol)
n
   NET      Manage network resources
   NETDOM   Domain Manager
   NETSH    Configure Network Interfaces, Windows Firewall & Remote access
   NBTSTAT  Display networking statistics (NetBIOS over TCP/IP)
   NETSTAT  Display networking statistics (TCP/IP)
   NLSINFO  Display locale information (reskit).
   NLTEST   Network Location Test (AD)
   NOW      Display the current Date and Time 
   NSLOOKUP Name server lookup
   NTBACKUP Backup folders to tape
   NTDSUtil Active Directory Domain Services management
   NTRIGHTS Edit user account rights
   NVSPBIND Modify network bindings
o
   OPENFILES Query or display open files
p
   PATH     Display or set a search path for executable files•
   PATHPING Trace route plus network latency and packet loss
   PAUSE    Suspend processing of a batch file and display a message•
   PERMS    Show permissions for a user
   PERFMON  Performance Monitor
   PING     Test a network connection
   POPD     Return to a previous directory saved by PUSHD•
   PORTQRY  Display the status of ports and services
   POWERCFG Configure power settings
   PRINT    Print a text file
   PRINTBRM Print queue Backup/Recovery
   PRNCNFG  Configure or rename a printer
   PRNMNGR  Add, delete, list printers and printer connections
   ProcDump Monitor an application for CPU spikes
   PROMPT   Change the command prompt•
   PsExec     Execute process remotely
   PsFile     Show files opened remotely
   PsGetSid   Display the SID of a computer or a user
   PsInfo     List information about a system
   PsKill     Kill processes by name or process ID
   PsList     List detailed information about processes
   PsLoggedOn Who's logged on (locally or via resource sharing)
   PsLogList  Event log records
   PsPasswd   Change account password
   PsPing     Measure network performance
   PsService  View and control services
   PsShutdown Shutdown or reboot a computer
   PsSuspend  Suspend processes
   PUSHD    Save and then change the current directory•
q
   QGREP    Search file(s) for lines that match a given pattern
   Query Process / QPROCESS  Display processes
   Query Session / QWinsta   Display all sessions (TS/Remote Desktop)
   Query TermServer /QAppSrv List all servers (TS/Remote Desktop)
   Query User    / QUSER     Display user sessions (TS/Remote Desktop)
r
   RASDIAL  Manage RAS connections
   RASPHONE Manage RAS connections
   RECOVER  Recover a damaged file from a defective disk
   REG      Registry: Read, Set, Export, Delete keys and values
   REGEDIT  Import or export registry settings
   REGSVR32 Register or unregister a DLL
   REGINI   Change Registry Permissions
   REM      Record comments (remarks) in a batch file•
   REN      Rename a file or files•
   REPLACE  Replace or update one file with another
   Reset Session  Delete a Remote Desktop Session
   RD       Delete folder(s)•
   RMTSHARE Share a folder or a printer
   ROBOCOPY Robust File and Folder Copy
   ROUTE    Manipulate network routing tables
   RUN      Start | RUN commands
   RUNAS    Execute a program under a different user account
   RUNDLL32 Run a DLL command (add/remove print connections)

s
   SC       Service Control
   SCHTASKS Schedule a command to run at a specific time
   SET      Display, set, or remove session environment variables•
   SETLOCAL Control the visibility of environment variables•
   SetSPN   Edit Service Principal Names
   SETX     Set environment variables
   SFC      System File Checker 
   SHARE    List or edit a file share or print share
   ShellRunAs Run a command under a different user account
   SHIFT    Shift the position of batch file parameters•
   SHORTCUT Create a windows shortcut (.LNK file)
   SHUTDOWN Shutdown the computer
   SLEEP    Wait for x seconds
   SLMGR    Software Licensing Management (Vista/2008)
   SORT     Sort input
   START    Start a program, command or batch file•
   STRINGS  Search for ANSI and UNICODE strings in binary files
   SUBINACL Edit file and folder Permissions, Ownership and Domain
   SUBST    Associate a path with a drive letter
   SYSMON   Monitor and log system activity to the Windows event log
   SYSTEMINFO List system configuration
t
   TAKEOWN  Take ownership of a file
   TASKLIST List running applications and services
   TASKKILL End a running process
   TELNET   Communicate with another host using the TELNET protocol
   TIME     Display or set the system time•
   TIMEOUT  Delay processing of a batch file
   TITLE    Set the window title for a CMD.EXE session•
   TLIST    Task list with full path
   TOUCH    Change file timestamps    
   TRACERT  Trace route to a remote host
   TREE     Graphical display of folder structure
   TSDISCON Disconnect a Remote Desktop Session
   TSKILL   End a running process
   TSSHUTDN Remotely shut down or reboot a terminal server
   TYPE     Display the contents of a text file•
   TypePerf Write performance data to a log file
   TZUTIL   Time Zone Utility
v
   VER      Display version information•
   VERIFY   Verify that files have been saved•
   VOL      Display a disk label•
w
   W32TM    Time Service
   WAITFOR  Wait for or send a signal
   WEVTUTIL Clear event logs, enable/disable/query logs
   WHERE    Locate and display files in a directory tree
   WHOAMI   Output the current UserName and domain
   WINDIFF  Compare the contents of two files or sets of files
   WINRM    Windows Remote Management
   WINRS    Windows Remote Shell
   WMIC     WMI Commands
   WUAUCLT  Windows Update
x
   XCACLS   Change file and folder permissions
   XCOPY    Copy files and folders
   ::       Comment / Remark•

Nguồn: http://ss64.com


Đôi khi bạn cần add một REG_NONE vào registry nhưng Bat không hỗ trợ kiểu NONE thông qua lệnh REG ADD vì vậy mình sẽ hướng dẫn các bạn một cách "lách luật" đó là chúng ta sẽ tạo ra một file reg sau đó import nó.
Code:

call :regnone HKEY_CURRENT_USER "keyname" valuename

goto :eof

:regnone
rem create a reg file
echo Windows Registry Editor Version 5.00 > none.reg
echo [%~1\%~2] >> none.reg
echo "%~3"=hex(0): >> none.reg

rem import it the registry
reg import none.reg 

del /q none.reg    

goto :eof
Hi vọng mẹo nhỏ trên sẽ giúp ích cho các bạn.

Cài đặt Windows là một trong kỹ năng không thể thiếu với người dùng máy tính, nhưng không phải ai cũng biết cách cài windows từ ổ cứng mà không cần sử dụng USB hay đĩa CD nhưng hiệu quả tương tự như khi dùng đĩa CD và USB: xóa hoàn toàn windows cũ, format và phân chia ổ đĩa dễ dàng. Nếu các bạn có sắn USB thì cũng có thể thực hiện theo hướng dẫn cài windows 7 bằng USB hoặc hướng dẫn cài windows 8.1 bằng USB.
Các phần trong bài viết:
  1. Ưu điểm khi cài Windows từ ổ cứng
  2. Điều kiện để có thể cài đặt
  3. Chuẩn bị trước khi cài đặt
  4. Hướng dẫn cài đặt:
    + Bước 1: Giải nén file cài đặt
    + Bước 2: Khởi động Command Prompt trông chế độ Safe mode
    + Bước 3: Gõ lệnh CMD chạy file cài đặt Windows
  5. Lỗi khi cài win từ ổ cứng

Ưu điểm khi cài Windows từ ổ cứng

  • Không tốn tiền mua USB hay CD. Mình thích nhất ưu điểm này :))
  • Tốc độ cài nhanh gấp 4 lầ CD và nhanh hơn USB do file được lưu trên máy tính thời gian sao chép file nhanh hơn từ USB hay CD vào máy tính.
  • Không cần dùng USB, CD nên cực kỳ tiện lợi, dù máy tính bạn không có ổ cắm CD hay USB cũng thực hiện được.

Điều kiện để có thể cài đặt

  • Hệ điều hành trên máy tính là Windows ( XP, 7, 8 ) và phải vẫn chạy bình thường. Hệ điều hành cài mới phải có cùng số bit với hệ điều hành đang sử dụng. Nghĩa là nếu bạn đang dùng windows 32 bít (x86) thì bạn phải cài hệ điều hành mới là 32 bit (x86) , hoặc nếu bạn đang dùng Windows 64 bit (x64) thì bạn phải cài hệ điều hành mới là windows 64 bit (x64).
  • Nếu không vào được hệ điều hành hoặc bạn muốn cài hệ điều hành mới có số bit khác hệ điều hành đang sử dụng thì bạn có thể cài đặt windows bằng USB cho windows 7 hoặc windows 8.1 mới.
  • Máy tính của bạn có ít nhất 2 ổ đĩa bao gồm cả ổ đĩa chứa HĐH đang sử dụng.

Chuẩn bị trước khi cài đặt

  • Tải file .ISO cài Windows 7 hoặc file .ISO cài Windows 8.1 (bạn có thể chọn một bản Windows 7, 8.1 32 bit hoặc 64 bit bất kỳ). Nếu Ram máy tính bạn từ 4GB trở lên thì bạn nên cài bản 64bit (x64), thấp hơn thì nên cài bản 32 bit (x86).
  • Cài sẵn phần mềm giải nén Winrar hoặc 7-zip. Nếu chưa có các bạn có thể download 7-Zip về cài đặt cho máy tính.

Hướng dẫn cài đặt Windows 7, 8 từ ổ cứng bằng Video

Hướng dẫn cài đặt Windows 7, 8 từ ổ cứng bằng hình ảnh

Bước 1: Giải nén file cài đặt

Bước 1.1: Di chuyển file .ISO cài Windows ra thư mục gốc của 1 ổ đĩa (không phải ổ C) trên máy tính.
Di chuyển file cài windows ra thư mục gốc
Bước 1.2: Giải nén file .ISO ra 1 thư mục cùng tên với file cài đặt.
  • Nếu máy tính bạn cài Winrar các bận nhấp chuột phải vào file .ISO chọn Extract to “X17-24280″
  • Nếu máy tính bạn cài 7-Zip các bận nhấp chuột phải vào file .ISO chọn 7-Zip => Extract to “X17-24280″
Giải nén file cài windows
Bước 1.3: Đổi tên thư mục vừa giải nén thành “windows” (hoặc tên khác nhưng các bạn phải nhớ)
Đổi tên thư mục


Bước 1.4: Mở thư mục vừa đổi tên kiểm trang nếu số lượng file và tên file tương đối giống với hình dưới thì các bạn đã giản nén thành công, nếu không các bạn kiểm tra xem file download về có lỗi không rồi giải nén lại. Sau đó ghi nhớ tên ổ đĩa chưa thư mục và tên thư mục và giải nén. Trong trường hợp máy tính của mình là ổ đĩa F thư mục Windows
Ghi nhớ tên đường dẫn

Bước 2: Khởi động Command Prompt trông chế độ Safe mode

Ở bước này thao tác trên Windows 7 và 8 sẽ khác nhau.

Cài windows mới từ máy đang chạy HĐH windows 7

– Các bạn khởi động lại máy tính và ấn nút F8 liên tục tới khi xuất hiện màn hình đen như hình bên dưới. Sau đó các bạn dùng nút mũi tên nên xuống và nút Enter để chọn Repair Your Computer.
Repair Your Computer
– Màn hình System Recovery Options hiển thị kêu các bạn chọn loại bàn phím dể thực hiện các bước tiếp theo. Các bạn để mặc định là US rồi nhấp vào Next
Chọn loại bàn phím
– Tiếp theo System Recovery Options lại yêu cầu bạn nhập mật khẩu cho máy tính với User mặc định của mình là BlogTinHoc, nếu máy bạn có mật khẩu thì các bạn nhập vào, nếu không có thì không cần nhập và chọn OK
Đăng nhập
– Màn hình System Recovery Options tiếp theo các bạn chọn Command Prompt
Command Prompt
– Sau đó bạn thu được cửa sổ Command Prompt. Giờ bạn chuyển sang bước 3.
CMD

Cài windows mới từ máy đang chạy HĐH windows 8

Từ màn hình Desktop các bạn di chuyển chuột góc trên phải màn hình để hiển thị thanh Menu, sau đó bạn kéo chuột xuống dưới chọn Settings trên Menu.
Chọn Power
Tiếp đến các bạn nhấp chuột trái vào Power tiếp đó các bạn giữ nút Shift và nhấp chuột trái vài Restart
Di chuột lên góc trên phải chọn SettingsSau đó màn hình Please wait sẽ load khoảng 30 giây và mở lên tùy chọn Choose an option. Tại đây các bạn chọn Troubleshot -> Advanced Options -> Command Prompt.
Troubleshot
Advanced Options
Command PromptSau đó máy tính sẽ khởi động lại và màn hình Command Prompt hiển thị lên, các bạn chọn tên Account máy tính.
Chọn User
Sau đó điền mật khậu khẩu mà chọn continue
Nhập Pass
Cuối cùng màn hình Command Prompt hiển thị lên.
Khởi động Command

Bước 3: Gõ lệnh CMD chạy file cài đặt Windows

Đầu tiên các bạn nhập tên ổ đĩa ( ổ chứa thư mục giải nén file cài đặt ở bước 1) sau đó ấn Enter để di chuyển tới ổ đĩa đó. Với máy tính mình là F:
Lệnh 1
Sau đó các bạn gõ “Tên thử mục”setup.exe với máy tính mình ở bước 1 là thư mục windows nên mình sẽ gõ windowssetup.exe sau đó ấn Enter.
Lệnh 2
Sau đó màn hình cài Windows mới sẽ xuất hiện.
Setup

Lỗi khi cài win từ ổ cứng

Đôi khi ở bước này các bạn có thể gặp lỗi “The system cannot find the path specified.”, lỗi này có thể là do bạn nhớ tên thư mục không đúng hoặc do ổ đĩa chứa thư mục cài win đã đổi tên ở bước này so với trong win (điều này thường xảy ra nếu các bạn phân vùng ổ đĩa). Để khắc phục đầu tiên bạn phải khởi động lại vào windows đảm bảo chắc chắn tên thư mục chính xác, và xem dung lượng ổ đĩa chứa thư mục là bao nhiêu GB, sau đó bạn làm các thao tác ở bước 2 để quay lại bước 3.
Lỗi
Tại đây, nếu tên thư mục mới nãy bạn điền vào sai thì bạn điền lại cho đúng, nếu tên thư mục đúng thì ta gõ lệnh “wmic logicaldisk get size,freespace,caption” vào. Lúc này sẽ có danh sách các ổ đĩa có trên máy tính, dung lượng ổ đĩa (đơn vị MB, các bạn có thể dự vào 1 GB=1024 MB để đổi dung lượng các ỗ đĩa ra GB), dựa vào dung lượng ổ đĩa bạn hãy xác định đâu là ổ đĩa chứa thư mục cài windows, nhưng nếu bạn ngại việc đổi dung lượng thì bạn hãy thực hiện bước 3 với lần lượt các ổ đĩa tới khi thành công thì thôi (mỗi máy tính thường có 2-3 ổ đĩa nên làm cũng khá nhanh, riêng ổ đĩa C là ổ đĩa chứa HĐH không thể bị đổi tên nên ta có thể xacs định được ổ đĩa này)
ổ đĩa
Bây giờ bạn có thể thực hiện các thao tác cài đặt tiếp theo y như khi cài bằng USB hoặc CD. Bây giờ các bạn làm theo bài viết hướng dẫn cài Windows 8.1 hoặc hướng dẫn cài windows 7

Nguồn: http://blogtinhoc.vn/
Tối nay nóng quá đến 2h sáng rồi mà vẫn không ngủ được vào tắm cái lại nhớ lại chuyện hồi nhỏ. Hồi đó nhà tôi nghèo lắm, không có quạt điện như bây giờ, cứ mỗi tối mùa hè nóng nực thì tôi và cả nhà thường ra hiên ngủ, có bữa thì ra sân, cả nhà có chiếc quạt giấy nhỏ mà mẹ tôi ưu tiên quạt cho tôi và cháu (con anh cả) tôi.

giếng khoan
Ảnh minh họa
Tuy vậy, tôi chỉ được quạt trước khi đi ngủ sau đó thì cả nhà ai cũng mệt nên ngủ thiếp đi hết, chỉ có cháu tôi thỉnh thoảng khóc làm mẹ tôi phải à ơi ru nó ngủ tiếp. Tính tôi không chịu được nóng, nên nửa đêm tôi tỉnh giấc lại chạy ra chiếc giếng khoan nhỏ, hì hục bơm nước, rồi uống, rồi dội, hì hà, cảm giác lúc đó dễ chịu làm sao, những ngụm nước mát rượi, trong lành tan chảy trong miệng rồi xuống bụng đi qua cổ họng làm dịu cơn khát, nước dội bên ngoài mát rượi làn da,...Bây giờ hiện đại có đá nền(gạch hoa), có quạt điện, máy bơm nước, tôi lại thèm cái cảm giác ngày ấy, không rõ nhưng chắc có lẽ không bao giờ quay về nữa.

Thứ Ba, 16 tháng 6, 2015

Chương trình hẹn giờ tắt máy được mình viết bằng bat file.
Ai hay ngủ quên thì tải về dùng nha, siêu nhẹ, khi chạy chỉ tốn <500kb ram vì chỉ có thêm 1 schedule vào process so sánh với các sản phẩm cùng loại thì thật nổi bật.

Chức năng: shutdown, restart, log off, and so on, định viết thêm cái hibernate mà thấy không cần thiết lắm :)

link download: https://drive.google.com/


Gitcode: https://github.com/tiktiktac/Auto-shutdown-computer