0

我对文件存储组织有疑问。有一个由 Windows 7 和 Windows XP 计算机组成的网络。其中之一是文件存储服务器。

软件包位于存储服务器上。每个软件包包括 1.active文件夹;1.每个程序的一些文件夹。

(参见下面的结构示例)

活动文件夹是实际程序版本的结构,必须允许以实际版本复制所有软件,避免通过直接复制复制文件。还需要快速切换实际版本。

程序文件夹包含每个程序版本的文件夹。

我试图通过 windows 解决任务directory junction。我通过Far Manager 3, command Alt+F6, type创建了链接directory junction

所需结构示例

+---active % 389 MB, desired package of actual software
|   +---notepad++ % directory junction
|   |   \---7.3.1
|   |           npp.7.3.1.Installer.exe
|   |           npp.7.3.1.Installer.x64.exe
|   |
|   +---octave % directory junction
|   |   \---4.2.1
|   |           octave-4.2.1-w32-installer.exe
|   |           octave-4.2.1-w64-installer.exe
|   |
|   \---texstudio % directory junction
|       \---2.12.4
|               texstudio-2.12.4-win-qt5.6.2.exe
|
+---notepad++
|   +---6.8.8
|   |       npp.6.8.8.Installer.exe
|   |
|   \---7.3.1 % actual version
|           npp.7.3.1.Installer.exe
|           npp.7.3.1.Installer.x64.exe
|
+---octave
|   +---4.2.0
|   |       octave-4.2.0-w32-installer.exe
|   |       octave-4.2.0-w64-installer.exe
|   |       octave-4.2.0-w64.zip
|   |
|   \---4.2.1 % actual version
|           octave-4.2.1-w32-installer.exe
|           octave-4.2.1-w64-installer.exe
|
\---texstudio
    +---2.11.0
    |       texstudio-2.11.0-win-qt5.5.1.exe
    |
    +---2.12.0
    |       texstudio-2.12.0-win-qt5.6.2.exe
    |
    +---2.12.2
    |       texstudio-2.12.2-win-qt5.6.2.exe
    |
    \---2.12.4 % actual version
            texstudio-2.12.4-win-qt5.6.2.exe

本地使用

本地意味着我在存储服务器的 Windows GUI 上进行操作。如果将active文件夹复制到另一个服务器的文件夹,观察结果与预期相同:

TEST_COPY
    \---active % 389 MB, all the files are copied
        +---notepad++
        |   \---7.3.1
        |           npp.7.3.1.Installer.exe
        |           npp.7.3.1.Installer.x64.exe
        |
        +---octave
        |   \---4.2.1
        |           octave-4.2.1-w32-installer.exe
        |           octave-4.2.1-w64-installer.exe
        |
        \---texstudio
            \---2.12.4
                    texstudio-2.12.4-win-qt5.6.2.exe

网络文件访问

如果通过网络共享访问存储服务器的active文件夹并复制它,则不会发生所需的结果。当然,tree /A /F命令显示复制树的相同结构,但active大小为 0 MB,子文件夹,notepad++也为零大小且为空。octavetexstudio

TEST_COPY
    \---active % 0 MB, no any files, only subfolders
        +---notepad++
        |   \---7.3.1
        |
        +---octave
        |   \---4.2.1
        |
        \---texstudio
            \---2.12.4

仅当尝试直接复制文件active夹 ( 7.3.1, 4.2.1, 2.12.4) 内的目录连接子文件夹时,才会根据需要复制内容。但是每个用户都想复制active文件夹,而不是它的二级子级。

顺便提一句。有时尝试复制时会发生错误:文件/文件夹已存在,并且复制过程意外中断。

可能是链接设置错误或有其他方法达到预期结果。

4

0 回答 0