    # File lib/chef/win32/file.rb, line 53
          def self.symlink(old_name, new_name)
            # raise Errno::ENOENT, "(#{old_name}, #{new_name})" unless ::File.exist?(old_name)
            # TODO do a check for CreateSymbolicLinkW and
            # raise NotImplemented exception on older Windows
            flags = ::File.directory?(old_name) ? SYMBOLIC_LINK_FLAG_DIRECTORY : 0
            old_name = encode_path(old_name)
            new_name = encode_path(new_name)
            unless CreateSymbolicLinkW(new_name, old_name, flags)
              Chef::ReservedNames::Win32::Error.raise!
            end
          end