ntfs

linux命令笔记

别等时光非礼了梦想. 提交于 2020-01-05 06:51:08
目录说明 / 根目录 bin 和程序相关 boot 和开机相关 cdrom 光盘 dev 设备 etc 配置文件 lib 库 home 家目录,账户登录后默认的路径 常用命令 ls pwd 查看当前路径 从 / 根目录 开始 例如: /home/python cd change dir 改变当前路径 touch 创建文件 例如: touch 1.txt mkdir 创建文件夹 例如: mkdir laowang 自动创建依赖文件夹 例如: mkdir A/b/c/d -p clear 清屏 gedit 很low的编辑文件方式 例如: gedit nihaolaowang.txt cat 查看文件 例如: cat nihaolaowang.txt more 分屏显示 例如: more xxx.txt 例如:ls -alh /bin | more 释意:将 /bin目录下的所有文件 放到 | 里 分屏显示 history 查看历史命令 例如:history !+数字 重复历史命令,数字为历史编号 例如: !1544 cd ~ 跳到家目录 cd - 反回上次起跳目录 ctrl + c 该行命令暂时不执行 通配符 * 通配符,任意字符任意位 例如: python@ubuntu:~/Desktop/laowang$ ls 2* 223.txt 233.txt 243.txt 253.txt

How can I read HDD volume serial number using VB 6?

蓝咒 提交于 2020-01-02 18:36:48
问题 How can I read HDD volume serial number using VB 6 but without using any ActiveX controls or third party add-ons? 回答1: Private Declare Function GetVolumeInformation _ Lib "kernel32" Alias "GetVolumeInformationA" _ (ByVal lpRootPathName As String, _ ByVal pVolumeNameBuffer As String, _ ByVal nVolumeNameSize As Long, _ lpVolumeSerialNumber As Long, _ lpMaximumComponentLength As Long, _ lpFileSystemFlags As Long, _ ByVal lpFileSystemNameBuffer As String, _ ByVal nFileSystemNameSize As Long) As

C# code to automatically give IIS write access to a folder on Windows Server 2008? Currently throws exception

一笑奈何 提交于 2020-01-01 10:52:14
问题 I am trying to write a command line tool that will give IIS7.5 on windows server 2008 write access to a folder in the wwwroot, so that a web application has access to write to a specific folder within it's base directory. Formerly, you would do this by assigning the IIS_WPG group on the folder giving that group Modify access. In Server 2008 I'm trying to do the same thing with IIS_IUSRS, but an exception is ocurring. Here is the code: private static void ManagePermissions(string directory,

C# code to automatically give IIS write access to a folder on Windows Server 2008? Currently throws exception

无人久伴 提交于 2020-01-01 10:51:34
问题 I am trying to write a command line tool that will give IIS7.5 on windows server 2008 write access to a folder in the wwwroot, so that a web application has access to write to a specific folder within it's base directory. Formerly, you would do this by assigning the IIS_WPG group on the folder giving that group Modify access. In Server 2008 I'm trying to do the same thing with IIS_IUSRS, but an exception is ocurring. Here is the code: private static void ManagePermissions(string directory,

NTFS Junctions, trouble understanding the API

时间秒杀一切 提交于 2019-12-31 01:53:09
问题 Update : This question has evolved into a question about the NTFS filesystem filter driver how to use the Win32 API in backup applications and other programs that need to know what a file really is on disk ? Junctions and reparse points are key concepts that I needed to consider and are the most confusing thing in the NTFS filesystem. The original question follows: What is the Win32 API used to detect if a directory is a junction? 'Where' (for lack of better understanding) in the NTFS

c# file path string comparison case insensitivity

北城余情 提交于 2019-12-30 23:37:49
问题 I would like to compare two strings containing file paths in c#. However, since in ntfs the default is to use case insensitive paths, I would like the string comparison to be case insensitive in the same way. However I can't seem to find any information on how ntfs actually implements its case insensitivity. What I would like to know is how to perform a case insensitive comparison of strings using the same casing rules that ntfs uses for file paths. 回答1: From MSDN: The string behavior of the

Windows NTFS and case sensitivity

孤街醉人 提交于 2019-12-30 10:04:41
问题 According to Wikipedia NTFS allows two similar names with different case (like Readme.txt vs. readme.txt) and it is only prevented by the windows file API. Current Windows file systems, like NTFS, are case-sensitive; that is a readme.txt and a Readme.txt can exist in the same directory. However, the API for file access in Windows applications is case-insensitive, which makes filenames case-insensitive from the application's point of view. Therefore, applications only have access to one of the

Implement Change Journal in Delphi

折月煮酒 提交于 2019-12-30 05:11:13
问题 I'm seeking to use Change Journal instead of ReadDirectoryChangesW to track changes in my delphi XE2 application (as for why: ReadDirectoryChangesW is not that reliable) The closest I could find in delphi/pascal is something called Delphi MFT/Journal helpers, it contains two pascal units: uMFT.pas and uDevNotification.pas. The code above deal with MFT (very nicely actually), but nothing as far change journal goes. I also found this C# code, which seems to do what I want, only it's in C# My

Large scale image storage

北城余情 提交于 2019-12-29 18:02:28
问题 I will likely be involved in a project where an important component is a storage for a large number of files (in this case images, but it should just act as a file storage). Number of incoming files is expected to be around 500,000 per week (averaging around 100 Kb each), peaking around 100,000 files per day and 5 per second. Total number of files is expected to reach tens of million before reaching an equilibrium where files are being expired for various reasons at the input rate. So I need

Can one add custom properties to NTFS folders?

早过忘川 提交于 2019-12-29 08:44:28
问题 I would like to be able to add my own custom data/properties to existing folders on NTFS, so that if a folder is moved, the properties move with it. One solution would be to store a file within the folder to contain whatever I need or want. What I am particularly interested in, is whether or not there is a way to add custom properties to the directory file system object itself. 回答1: If you are feeling brave ( or foolish ) perhaps an Alternative Data Stream would be an alternative. I am not