Hiển thị các bài đăng có nhãn Thủ thuật IT. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn Thủ thuật IT. Hiển thị tất cả bài đăng

Thứ Sáu, 25 tháng 9, 2015



Trong windows, việc tạo shortcut cho chương trình là vô cùng đơn giản, tuy nhiên trong ubuntu nó cũng chẳng khó khăn hơn là bao. Gồm 2 bước sau:

Bước 1: Bạn dùng trình soạn thảo văn bản gedit tạo một file mang tên shortcutDemo.desktop rồi copy đoạn code sau vào và lưu lại ở thư mục desktop:

[Desktop Entry]
Encoding=UTF-8
Name=Terminal
Comment=Use the command line
Exec=gnome-terminal
Icon=utilities-terminal
Categories=Application;
Version=1.0
Type=Application
Terminal=0

Giải thích một chút nhé
Mục Name là tên sẽ được hiển thị của shortcut, như ở ví dụ này là Terminal
Mục Exec là đường dẫn thực thi chương trình, tức là cái đường dẫn mà khi thực hiện nó trong terminal thì chương trình sẽ được khởi chạy.
Mục Icon là đường dẫn tới file icon của chương trình

Bước 2: Bạn cần cấp quyền thực thi cho file shortcut vừa tạo ra bằng lệnh sau:
sudo chmod +x ~/Desktop/shortcutDemo.desktop

Okie, đã hoàn thành, bây giờ bạn thấy trên desktop đã xuất hiện một shortcut tên là Terminal, bạn nháy đúp vào nó sẽ khởi chạy của sổ terminal :)), đó là thành quả.
Trường hợp bạn muốn hiển thị shortcut khi tìm kiếm ở thanh dash, bạn chạy thêm đoạn lệnh sau:
sudo cp ~/Desktop/shortcutDemo.desktop /usr/share/applications

Trên đây là các bước để thực hiện, bạn có thể thay thế các thông số ở đoạn code bước 1 sao cho phù hợp với từng chương trình.

Cách 2: cách này dành cho các bạn thích đồ họa ^^
Bước 1: Bạn chạy đoạn lệnh sau trong terminal để cài gnome panel:
sudo apt-get install --no-install-recommends gnome-panel

Bước 2: Bạn chạy tiếp đoạn lệnh sau để tạo shortcut:
sudo gnome-desktop-item-edit ~/Desktop --create-new

Nó sẽ hiển thị một hộp thoại cho bạn điền các thông số cần thiết rất dễ dàng.
Chúc các bạn thành công!


Sau khi cài đặt XAMPP trên ubuntu, bạn có thể tạo một shortcut cho nó để ta có thể chạy nó từ desktop hoặc thanh dash.  Cách làm như sau:

Bước 1: Bạn chạy lệnh
sudo apt-get install gksu

Bước 2: Bạn dùng một trình editor bất kỳ như gedit chẳng hạn tạo một file mang tên XAMPP.desktop ở desktop rồi copy đoạn code sau và lưu lại:

[Desktop Entry]
Encoding=UTF-8
Name=Xampp Manager
Comment=Manage XAMPP
Exec=gksudo /opt/lampp/manager-linux.run
Icon=/opt/lampp/htdocs/favicon.ico
Categories=Application;Development;Web
Version=1.0
Type=Application
Terminal=0

Bước 3: Bạn nhập các lệnh sau:

cd Desktop //lenh nay truy cap den thu muc desktop
sudo chmod +x XAMPP.desktop //lenh nay nham cap quyen thuc thi cho shortcut vua tao
sudo cp XAMPP.desktop /usr/share/applications  //lenh nay nham copy shortcut vua tao vao thu muc applications nham de hien thi trong dask
 
Sau khi hoàn thành 3 bước trên, bạn chạy thử bằng cách nháy đúp vào shortcut trên desktop hoặc vào dash tìm kiếm với từ xampp và chạy, chúc các bạn thành công!

Chủ Nhật, 9 tháng 8, 2015



IDM là công cụ download hàng đầu trên windows, nó cho phép chúng ta dùng thử 30 days
Nếu bạn là một tín đồ của nó thì sau 30 days có thể bạn sẽ tìm đến các phương pháp crack,
tuy vậy các chương trình crack lại thường đi kèm với nhiều điều không hay:
Thứ nhất crack đương nhiên vi phạm tác quyền,
Thứ hai crack có thể ảnh hưởng đến máy tính của bạn bởi các chương trình crack ẩn chứa vô số hiểm họa,
Thứ ba crack thì khi update phải crack lại rất bất tiện
Lợi ích của việc dùng thử khắc phục được tất cả các vấn đề ở trên.
Công cụ IDM Trial Reset của mình có thể giúp bạn, nó được viết bằng Batch file, nhỏ nhẹ, tiện dụng
Link download

Thứ Bảy, 8 tháng 8, 2015


Nếu bạn không muốn động chạm tới crack, không muốn vi phạm tác quyền thì những cách sau đây có thể giúp bạn.

Normally there are two types of restrictions for shareware. The first one is the demo version with limited or crippled functionality that doesn’t have an expiry date and another type is the fully functional trial version that expires after a certain period of time. The amount of days given to try are normally around 30 days but it could be shorter or longer depending on the author of the software. In the earlier days, you can easily run the expired software by simply backdating the date on your Windows operating system but some software has got smarter to detect this and instantly ends the trial period.
Software Expired
You might think to yourself, how does the shareware knows how many days left in the trial period? Most of the time these commercial and freeware protectors drop some information somewhere deep inside your computer after installation so they know when it was installed and then comparing with the official current time pulled from the Internet. It is possible to find the location that records that information by using file or registry monitoring software including third party uninstaller software such as Revo Uninstaller but it can be tedious and frustrating work.
Here’s a few simpler ways on how you can extend trial periods of software using various different methods.
1. NirSoft RunAsDate
As the name might suggest, RunAsDate performs a trick on the trial software that has expired by injecting the time and date you specify into its process. This has a similar effect to manually setting your system clock to a different time and date, but in this instance your real clock remains unchanged. RunAsDate can also have multiple instances of its program running at once, and each one can have a separate date, all different to the real one.
As a simple example, if you’re using the popular archiver WinZip and its 30 day trial period has expired, it won’t let you use the program anymore, and you either have to purchase a license or uninstall it. Using RunAsDate, you can set the date back to be within the trial period making WinZip usable again. The image below is WinZip after the 30 day trial has passed, note the “Use Evaluation Version” is now grayed out.
WinZip trial has expired
If you now load up RunAsDate, all you have to do is browse for the application to use the program on, in this case “C:\Program Files\WinZip\WINZIP32.EXE”, then choose a date and time from the pop-out calender to before the trial period expired. Now simply press the Run button.
RunAsDate
RunAsDate has a few other options such as allow arguments to be applied to the executable, and also a useful option to create a desktop shortcut which will automatically launch the application with the configuration options you’ve supplied in the window. The Immediate Mode check box can be used to inject the date/time earlier in the process, but is known to cause crashes on some programs, especially those using .NET.
trial period extended
If you run WinZip after entering the right date and time numbers and press Run or launch it via a shortcut, you’ll notice it no longer says expired and the Evaluation button is clickable again. Although time and date altering isn’t going to work on all trial software that has an expiry, it is a very quick and easy thing to try out first before turning to more advanced methods.
Download NirSoft RunAsDate

2. Trial-Reset 4.0
This is the final version released in 2010 by “The Boss”, and is able to scan and remove 45 types of commercial and freeware protections including some software that uses custom protectors such as Reflexive, Namo, ABBYY, WinRAR, WinZip and etc. In fact if you know the registry location of where the trial information are recorded for a shareware program, you can create your own text file and save it in the Lists folder.
Trial-Reset
Do note that Trial-Reset does not modify the shareware in anyway. It simply cleans the registry keys generated by the protectors which are normally not removed even after uninstalling the software. This is how a lot of shareware knows you have no trial period left, even if you uninstall and re-install the program again. Trial-Reset is very easy to use. To start scanning, simply click on the All located at the bottom left. The scanning will take a while since some of the methods require scanning the hard drive. The right pane will show all the detected keys that are used by any shareware titles.
You can backup, view or delete the keys, add to protect or auto cleaning list from the right click context menu. If you have a lot of shareware installed, there will be quite a number of results and you will need to do a trial and error to find the key that is associated with the software that you want to reset the trial period.
Download Trial-Reset 4.0 including Source Code
3. Time Stopper
Time Stopper is a program that behaves in a similar way to RunAsDate and fools the expired application into thinking it’s still within the trial period. This tool does differ slightly though because you don’t have the option to directly run the expired program from Time Stopper, but instead it is designed specifically to run from a desktop shortcut with the new time and date injected when you run the program from the shortcut.
Time Stopper
Simply run Time Stopper and locate the trial software executable with the Browse button. Choose the new time and date from the pop-out calender, and then give the shortcut icon a name and finish by clicking the create button. Like Nirsoft RunAsDate, this tool will work on some shareware programs and not others but is easy enough to try.
Download Time Stopper

4. Using a Software Installation Monitor
This method may not seem that obvious at first, but actually can work quite well in many circumstances. The theory is simple in that you use a standard piece of installation monitor software which watches the files and registry entries that a program creates when it installs, and then can completely uninstall the software including everything that doesn’t get removed by the standard uninstaller. This often has the effect of also removing registry entries shareware might leave behind to watch its trial expiry status.
As an example, this can be achieved for the Internet Download Manager shareware program when its 30 day trial expires. We happen to know that the trial status of IDM is stored in the registry key “HKEY_CURRENT_USER\Software\Classes\CLSID\{07999AC3-058B-40BF-984F-69EB1E554CA7}”, but IDM doesn’t remove this key when you uninstall through its own uninstaller and the time/date trick doesn’t work. Therefore once the trial period expires, the information remains on your computer and it will stay expired even if you re-install the program again in future.
Complete Uninstall
To demonstrate, we installed Comodo Programs Manager which is one of the better installation monitor’s around, and let it automatically monitor the install of IDM. Then once the trial period for IDM has expired, we simply select it for a “Complete Uninstall” in Comodo Programs Manager. After the standard uninstaller has finished, Programs Manager will show the extra files and registry entries that have been left behind. Expand the Registry tree and looking at the keys, we can see the IDM key which controls the trial period status is listed for removal. Continue the removal and if you re-install Internet Download Manager, its trial status will be reset to 30 days.
registry key left intact after uninstallation
This method is obviously not foolproof but if you can install the trial software for the first time after installing the installation monitor, and the trial information is kept in the registry or a data file, one of these programs has a chance of picking it up and removing it which will reset the trial period.

5. Registry Trash Keys Finder
This might be a better solution these days because it is up-to-date. Unlike the Trial-Reset program which was last updated more than 2 years ago, it may not work on shareware that uses a newer version protector. Although Registry Trash Keys Finder is free, there are some limitations where some of the protection keys are not shown. The full version of Registry Trash Keys Finder is only available after donating to the author of this tool and it removes the limit.
Registry Trash Keys Finder Free
As you can see at the screenshot above, there are 3 registry keys that shows {FREEWARE-VERSION-CAN’T-SHOW-THIS-KEY} for the Armadillo protector which cannot be seen nor deleted. We wanted to test the full version so badly that we donated to get it. From the “what’s new” area, we read that they’ve recently added a search routine for the latest Alawar.com games keys so we decided to put Alawar games to the test.
We downloaded a game from Alawar called Sticky Linky and played the whole free 60 minutes. Once the 60 minutes free play time is up, it shows 0 minutes game time left and we can no longer play the game until we purchase the game.
0 minutes game time left
We ran Registry Trash Keys Finder full version and Alawar came up in the search results.
Registry Trash Keys Finder Full version
The Alawar key is deleted and running Sticky Linky now gives us another 60 minutes of free game time!
Alawar Play for Free
The Registry Trash Keys Finder full version has successfully extended the trial period of a game and it should also work for other software too. Other than just resetting the trial period, it also acts as a registry cleaner/optimizer where it detects obsolete registry keys of uninstall/app paths/SharedDLLs/Installer/MUICache/Help, unused file extensions, empty CLSID and TypeLib key, invalid name of CLSID and many more.
Download Registry Trash Keys Finder

Nguồn bài viết: 
https://www.raymond.cc/blog/how-to-extend-the-trial-period-of-a-software/2/
Tác giả: RayMond

Chủ Nhật, 2 tháng 8, 2015




Sau đây mình xin chia sẻ với các bạn 2 trang web dùng để tra cứu ip và dns,... mà mình rất tâm đắc
đó là trang http://whatismyipaddress.com/


và trang https://whois.domaintools.com .

 2 trang này có các công cụ tra cứu cực kỳ chất lượng bao gồm nhiều thứ, các bạn có thể tự khám phá. Mình cũng từng sử dụng nhiều trang khác như checkip.org hay whatismyip.com ,,,.. nói chung là rất nhiều trên mạng nhưng chất lượng và uy tín thì không bằng 2 trang này.
Bạn nào có trang khác chất lượng thì bình luận bên dưới nhé. Cám ơn.

Thứ Bảy, 1 tháng 8, 2015

Genymotion là một công cụ rất tốt để chạy các ứng dụng android, tuy vậy khi bạn tải về một máy ảo bằng geny thì hay gặp tình trạng download rất chậm, vì vậy hôm nay mình sẽ hướng dẫn các bạn một cách để tải về các máy ảo này bằng idm, rất nhanh :)
Mời các bạn xem video ở dưới

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ứ 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


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/

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