Так загружается весь файл, медленно:
Get-Content ".\file.txt" | Select -First 1
Get-Content ".\file.txt" -TotalCount 1
Через .NET либы быстрее:
$reader = [System.IO.File]::OpenText("file.txt")
$line = $reader.ReadLine()
$reader.Close()
Так загружается весь файл, медленно:
Get-Content ".\file.txt" | Select -First 1
Get-Content ".\file.txt" -TotalCount 1
Через .NET либы быстрее:
$reader = [System.IO.File]::OpenText("file.txt")
$line = $reader.ReadLine()
$reader.Close()
удаляем раздел SkyDrive Pro из меню проводника: REG EXPORT "HKCR\AllFilesystemObjects\shell\SPFS.ContextMenu" %HOMEDRIVE%\SkyDrivePro.reg /y /reg:32 && REG DELETE "HKCR\AllFilesystemObjects\shell\SPFS.ContextMenu" /f
(вернуть обратно можно файлом SkyDrivePro.reg в корне вашего системного раздела)
В Windows 8 в целях безопасности отключены административные общие ресурсы, исправить можно командой: REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v LocalAccountTokenFilterPolicy /d 1 /t REG_DWORD /f
(выполнять от имени администратора, перегрузиться, включить правило File and Printer Sharing для файервола) © | wiki
Не чините то, что работает!
tip: сохранять по-умолчанию в office 2013 файлы на локальный компьютер (а не в SkyDrive)
гейзерная кофеварка должна быть «грязной» (тобишь, кофейные масла лучше оставить на стенках), помол кофе «грубым» (чтобы не забивался в фильтр).
When you try to delete flash plugin (flash6.ocx, flash10c.ocx) from %windir%\system32\Macromed\Flash folder, you get “permission denied” even if you’re the owner of the directory. The reason is that Flash plugin installer sets DENY WRITE permissions in NTFS ACL for this file, and DENY permissions rules always override ALLOW rules. So when you try to delete even you’re the owner of the files, you’re denied to do that :) Continue reading Killing flash10c.ocx