dongyang7152 2018-07-20 13:49
浏览 233
已采纳

获取文件所有者的另一种方法,而不是从Windows上的advapi32获取文件所有者

I'm working on a golang script who get fileInfo and owner from every file using go 1.10.3 on a 32 bit windows. My script work well but im facing a problem. The library advapi32 and more specificly GetNamedSecurityInfoW and LookupAccountNameW functions take around 1 millisecond since I've got a big amount of files the "scan" is obviously too long. I just wanted too now if there's another way to do it faster ? I'm open on any suggetion or help Thanks.

  • 写回答

1条回答 默认 最新

  • duanhan9334 2018-07-24 06:01
    关注

    Thank you gonutz i managed to make it quite faster with goroutine, I aproach 2 500 000 files every 22minute. And my algorythm is still not optimised.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 TLS1.2协议通信解密
  • ¥40 图书信息管理系统程序编写
  • ¥20 Qcustomplot缩小曲线形状问题
  • ¥15 企业资源规划ERP沙盘模拟
  • ¥15 树莓派控制机械臂传输命令报错,显示摄像头不存在
  • ¥15 前端echarts坐标轴问题
  • ¥15 ad5933的I2C
  • ¥15 请问RTX4060的笔记本电脑可以训练yolov5模型吗?
  • ¥15 数学建模求思路及代码
  • ¥50 silvaco GaN HEMT有栅极场板的击穿电压仿真问题