在系统上为文件夹设置新的短名称 [英] Set new short name for folder on system

查看:122
本文介绍了在系统上为文件夹设置新的短名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在系统中,当我们创建新文件夹时,它将为该文件夹生成新的短名称(此短名称未显示,对于在cmd dir / x上查看它运行命令),启用短名称创建时。



但是当在系统中禁用短名称创建时,在创建文件夹系统后没有为此文件夹定义短名称时,它应该保持为空。所以在这个时候如何为这个文件夹创建新的短名称。



用于启用/禁用短名称创建:

fsutil.exe行为设置disable8dot3 1 - 禁用

fsutil.exe行为设置disable8dot3 0 - 启用

In system, when we create the new folder it will generate new shortname for that folder(This shortname not shown, for see it run command on cmd dir /x), when short name creation is enable.

But when shortname creation is disable in system then after creation of folder system doesn't define shortname for this folder, it should remain empty. so at this time how to create new short name for this folder.

For enable/disable shortname creation:
fsutil.exe behavior set disable8dot3 1 - disable
fsutil.exe behavior set disable8dot3 0 - enable

推荐答案

你不能禁用8.3名称创建,你只能禁用创建匹配8.3格式的文件和文件夹。即G。如果您在命令提示符下并启用8.3模式,然后创建一个具有长名称的文件或文件夹,则将使用8.3格式的短名称创建文件/文件夹。如果您禁用8.3模式,文件/文件夹将使用您输入的原始长名称,但在8.3模式下,它将以显示而不是短名称。



背景:

Windows的前身MS-DOS不支持基数超过8个字符且后缀超过3个字符的名称。为确保与基于MS-DOS的程序向后兼容,Windows会自动将任何不符合8.3格式的名称转换为8.3格式的 的短名称。
You cannot disable 8.3 name creation, you can only disable the creation of files and folder that don't match the 8.3 format. e. g. if you are on the command prompt and enable 8.3 mode, then create a file or folder with a long name, the file/folder will instead be created using the 8.3 format short name. If you disable 8.3 mode, the file/folder will use the original, long name that you entered, but in 8.3 mode it will be displayed with the short name instead.

Background:
MS-DOS, the predecessor of Windows, did not support names with a base of more than 8 chars and suffix more than 3 chars. To ensure backward compatibility with MS-DOS-based programs, Windows automatically converts any name not fitting the 8.3 format into a short name that is in 8.3 format.


这篇关于在系统上为文件夹设置新的短名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆