简体   繁体   English

\\ Windows \\ vs. \\ Windows \\ System32 - 文件位置约定

[英]\Windows\ versus \Windows\System32 - File location conventions

Is there a standard convention for the types of files that go in \\Windows\\ versus those that go in \\Windows\\System32 ?? 对于\\ Windows \\中的文件类型是否存在标准约定,而不是\\ Windows \\ System32中的文件类型?

I'm working on an SDK that has a variety of DLLs a helper exe, and a Windows service exe. 我正在开发一个SDK,它有各种DLL,一个helper exe和一个Windows服务exe。 The previous guy who worked on the code put the two exe files in \\Windows\\ and the DLLs in \\Windows\\System32\\ But it seems to me that they should likely all go in \\Windows\\System32\\ 以前在代码上工作的人把两个exe文件放在\\ Windows \\和DLLs \\ Windows \\ System32 \\但在我看来他们应该全部进入\\ Windows \\ System32 \\

Which would you do? 你会做什么?

Edit: 编辑: I am NOT trying to debate the merits of if they should go there at all. 我不是在试图讨论他们是否应该去那里的优点。 Plenty of apps install things to System32...especially for services or drivers (both of which I'm dealing with). 大量的应用程序安装到System32 ...特别是服务或驱动程序(我正在处理)。 Granted, I'm not saying it's right...as I said, I didn't create this initially...for the sake of this question. 当然,我并不是说它是对的...正如我所说,我最初没有创造这个...为了这个问题。 If those were your only choices...what goes where? 如果这些是你唯一的选择......那会是什么?

Edit: OK, point taken. 编辑:好的,点了。 I didn't really think I was going to be able to convince the "architect" of this project to move them out of either of those two directories... but at this point I'll try harder. 我真的不认为我能够说服这个项目的“架构师”将它们从这两个目录中的任何一个中移出......但是在这一点上我会更加努力。 Agreed...nothing should be put in those folders. 同意......不应该把任何东西放在那些文件夹中。

They shouldn't go in either! 他们不应该进去! Your application files go in your application directory, not in the Windows directories under any circumstances - those are for the ioperating system to use, not you. 您的应用程序文件在您的应用程序目录中,而不是在任何情况下的Windows目录中 - 这些都是供ioperating系统使用的,而不是您。

And it doesn't matter whether your application is installing executables, DLLs, drivers, fonts, configuration files, whatever. 无论您的应用程序是安装可执行文件,DLL,驱动程序,字体,配置文件等,都无关紧要。 They do not go in the Windows directories. 它们不会进入Windows目录。 The fact that a few badly designed and badly written applications do install things there is no execuse. 一些设计糟糕且编写得很糟糕的应用程序确实安装了这些东西的事实是没有执行的。

I would put the files under Program Files where they belong. 我会把文件放在它们所属的Program Files下。 Windows and Windows\\System32 are for the operating system's use only. Windows和Windows \\ System32仅供操作系统使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否可以在运行时将myfile.file放在C:/ Windows / System32 /位置? - is it possible to place a myfile.file in C:/Windows/System32/ location at runtime? C++ 重命名文件@C:\\Windows\\System32\\Drivers - C++ Rename File @ C:\Windows\System32\Drivers c:\\ windows \\ system32 \\ dns删除.dns文件 - c:\windows\system32\dns deleting .dns file System32是Windows中的当前工作目录? - System32 is current working directory in Windows? 重新打开 C:\\windows\\system32 中的文件时,ReOpenFile Windows API 失败并显示“错误无效名称” - ReOpenFile Windows API fails with "error invalid name" when reopening a file in C:\windows\system32 如何在Windows 8的路径中添加C:\\ windows \\ system32? - How to add C:\windows\system32 to path on Windows 8? 使用批处理文件将文件从本地文件夹复制到“C:\\ Windows \\ System32 \\” - Copying a file from local folder to “C:\Windows\System32\” using batch file Python无法在C:\\ Windows \\ System32 \\ oobe \\ Info \\ backgrounds中打开文件 - Python can't open a file in C:\Windows\System32\oobe\Info\backgrounds Inno 设置“源文件 C:\Windows\System32\vcruntime140_1.dll 不存在”错误 - Inno Setup “Source file C:\Windows\System32\vcruntime140_1.dll does not exist” error 从任务计划程序启动批处理文件指向 C:\Windows\system32 - Starting batch file from Task scheduler point to C:\Windows\system32
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM