• 解除文件锁定(此文件来自其他计算机,可能被阻止以保护该计算机)


    ntfs文件系统中网上下载的文件多有可能有"锁定"的属性.即打开文件属性窗口,最下面会显示"此文件来自其他计算机,可能被阻止以保护该计算机".需要手动"解除锁定".

    这种情况下chm格式的文件不会正常显示,如果要拷贝到u盘也无法拷贝,而且会终止拷贝过程.
    如果文件过多需要解锁,一个一个手工解除需要太多时间.
     
    这时可以下载微软的一个小工具,对整个文件夹当中的文件解除锁定.
     
    以下引用

    Introduction

    The NTFS file system provides applications the ability to create alternate data streams of information. By default, all data is stored in a file's main unnamed data stream, but by using the syntax 'file:stream', you are able to read and write to alternates. Not all applications are written to access alternate streams, but you can demonstrate streams very simply. First, change to a directory on a NTFS drive from within a command prompt. Next, type 'echo hello > test:stream'. You've just created a stream named 'stream' that is associated with the file 'test'. Note that when you look at the size of test it is reported as 0, and the file looks empty when opened in any text editor. To see your stream enter 'more < test:stream' (the type command doesn't accept stream syntax so you have to use more).

    NT does not come with any tools that let you see which NTFS files have streams associated with them, so I've written one myself. Streams will examine the files and directories (note that directories can also have alternate data streams) you specify and inform you of the name and sizes of any named streams it encounters within those files. Streams makes use of an undocumented native function for retrieving file stream information.

    Using Streams

    Usage: streams [-s] [-d] <file or directory>

    -s Recurse subdirectories.
    -d Delete streams.
    Streams takes wildcards e.g. 'streams *.txt'.

    使用方法:

    > streams.exe -s -d directory

    如:

    >streams.exe -s -d d:\downloads

    可以在运行里输入或者创建快捷方式添加参数

  • 相关阅读:
    上海 政府性 常用网站
    linux 如何显示一个文件的某几行(中间几行)
    oracle 替换其中部分内容
    notepad++ 开始和结尾
    ll -d
    Mongodb总结3-稍微封装一下
    Mongodb总结3-稍微封装一下
    Mongodb总结2-Java版本的HelloWorld-CRUD例子
    Mongodb总结2-Java版本的HelloWorld-CRUD例子
    Mongodb总结1-启动和Shell脚本
  • 原文地址:https://www.cnblogs.com/sovf/p/3030923.html
Copyright © 2020-2023  润新知