Tuesday, November 1, 2011

Windows cmd

(Anhgolden's Blog)-

Hipernate:
%windir%\system32\rundll32.exe powrprof.dll,SetSuspendState Hibernate

Lock workstation:
%windir%\System32\rundll32.exe user32.dll,LockWorkStation

Shutdown:
shutdown -s -f- t 10

Restart:
shutdown -r

Logout:
shutdown -l

Import and Export Mysql db in Windows:
cd c:\path\to\mysql\bin
Export:
mysqldump --opt -uUSERNAME -pPASSWORD DATABASE_NAME > "C:/path/to/dump/file.sql"
Import:
mysql -uUSERNAME -pPASSWORD DATABASE_NAME < "C:/path/to/dump/file.sql"

No comments:

Post a Comment