Friday, 7 August 2009

Symbolic Links in NTFS

How to use symbolic links in Vista
Tools for creating hard links in XP
See here as well

Using Junction

Junction tool for creating symbolic links
Use junction to list junctions:
Usage: [-s]
-s Recurse subdirectories
To determine if a file is a junction, specify the file name:

junction c:\test

To list junctions beneath a directory, include the –s switch:

junction -s c:\

To create a junction c:\Program-Files for "c:\Program Files":

C:\>md Program-Files
C:\>junction c:\Program-Files "c:\Program Files"

To delete a junction, use the –d switch:

junction -d c:\Program-Files

Sunday, 15 February 2009

IDE ATA and ATAPI disks use PIO mode after multiple time-out or CRC errors occur

These notes are taken from here

  1. In regedit.exe search for HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}
  2. Expand the registry node. You should see entries labeled "0000", "0001", "0002", etc.
  3. Double-click on each key entry and in the right side panel look for the subkey "DriverDesc". Verify that the "DriverDesc" reads "Primary IDE Channel" or "Secondary IDE Channel".
  4. Check to see if the registry entry "ResetErrorCountersOnSuccess" is already present and set to 1 (ie. "0x00000001"). If it is set to 0, double-click on "RestErrorCounterOnSuccess" and change the value to 1, close regedit, reboot your system, and after reboot check to see if DMA mode has been enabled.
  5. If "ResetErrorCountersOnSuccess" it is not present, then select the "Edit" menu, select "New" and click on "DWORD value".
  6. Enter the name "ResetErrorCountersOnSuccess" and press enter.
  7. Double-click on "ResetErrorCountersOnSuccess" and enter the value 1.
  8. Close regedit and reboot the system. After reboot, check the value of "Current Transfer Mode" for the channel(s) updated.

Wednesday, 21 January 2009

Disable Auto Play

Put the following in a registry file and execute it to disable AutoPlay on all drives
See more details here

Windows Registry Editor Version 5.00


You can selectively drives with the following values (that can be 'Or'ed together)

Value Meaning
0x1 Disables AutoPlay on drives of unknown type
0x4 Disables AutoPlay on removable drives
0x8 Disables AutoPlay on fixed drives
0x10 Disables AutoPlay on network drives
0x20 Disables AutoPlay on CD-ROM drives
0x40 Disables AutoPlay on RAM disks
0x80 Disables AutoPlay on drives of unknown type
0xFF Disables AutoPlay on all kinds of drives

Thursday, 1 January 2009

Manually Installing/Uninstalling a Codec In Windows

To install

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc]
"XXX.acm"="Some textual description here"

To uninstall

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc]