2D/3D dock in Lion

To change 3D Dock to 2D dock:

1.Type in terminal as :
defaults write com.apple.dock no-glass -boolean YES

then hit enter key.

2. Then type in terminal: killall Dock
then hit enter key.

To change 2D Dock to 3D dock: 

1.Type in terminal as :
defaults write com.apple.dock no-glass -boolean NO

then hit enter key.

2. Then type in terminal: killall Dock
then hit enter key.
 

To change folder icon in Mac OS



1.      Open folder with Mac icons in .ICNS format in Finder and copy icon (Cmd+C).
OR
Select a folder which has different icon then default icon for folder in Mac
1.1  Get folder info for the folder.
1.2  Select folder icon and copy the icon through “Edit/Copy” from Desktop top menu.


2.      Now get folder info for the folder you want to change icon.
3.      Select folder icon and paste the icon through “Edit/Paste” from Desktop top menu.

To Create Multiple folders in Windows using CMD

•    To create multiple folders in Windows:

Type in Command prompt:-  MD name1 name2 name3
It will create three folders at same location named as “name1” , “name2” and “name3”.

•    To create deep hierarchy of folders:

Type in Command prompt:-  MD name1\name2\name3
It will create a hierarchy of folder as name1/name2/name3.

How to create heavy file under Mac/Windows of any Extension type

•    For Windows:
1.    Go to command prompt
2.    Navigate to a folder say(cd “C:/test”)
3.    Type:  fsutil file createnew test.txt 5248 and hit enter key from keyboard.


•    For Mac:
1.    Go to terminal
2.    Navigate to location, where you want to create file
3.    Type: mkfile –v 10m test.txt
(Note: 10m demotes 10MB files, so give file size in MBs)
Note: You can change extension type of file to create any type of file like
fsutil file createnew test.jpg 5248



To Enable/Disable USB in Windows

To disable the access to USB port, in Windows OS

1. Click Start, and then click Run.
2. In the Open box, type regedit, and then click OK.
3. Locate, and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor
4. In the right pane, double-click Start.
5. In the Value data box, type 4, click Hexadecimal (if it is not already selected), and then click OK.
6. Quit Registry Editor.
To re-enable a disabled port:
1. Click Start, and then click Run.
2. In the Open box, type regedit, and then click OK.
3. Locate, and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor
4. In the right pane, double-click Start.
5. In the Value data box, type 3, click Hexadecimal (if it is not already selected), and then click OK.
6. Quit Registry Editor.