问题标签 [junction]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
5 回答
10924 浏览

python - 在 Python 中创建 NTFS 连接点

有没有办法在 Python 中创建 NTFS 连接点?我知道我可以调用该junction实用程序,但最好不要依赖外部工具。

0 投票
5 回答
233 浏览

sql - What is the accepted method to delete records referenced by a junction/join table?

I have three tables as follows, with NO cascading relationships (I do not want this, as the database is primarily managed by NHibernate).

What I'm trying to do is delete the invoices, tickets, and related InvoiceTicket rows given a criteria on Ticket. But I have to do this externally to our application, hence why I'm building a SQL query to do it.

I've already deleted all the dependencies to both Invoice and Ticket, no problem. Since Invoice and Ticket are referenced by InvoiceTicket, I must delete InvoiceTicket rows first. However, if I do that, then my link to the Invoice table is broken (I can still delete the tickets of interest, but no longer the invoices).

What is the accepted method to perform this operation using SQL?

I solved the problem already by using a temporary table and filling it with the rows of interest from the InvoiceTicket table, but what are other people doing to solve this type of problem? I would imagine you could do this with a stored procedure as well, but I'm not as familiar with writing those. Is there a direct way of doing this operation through SQL queries?

0 投票
2 回答
5864 浏览

windows - 如何按原样复制联结而不是它指向的文件夹?

我将一组文件夹从服务器 1 复制到服务器 2。在文件中,我还有 junction: 带有一组配置文件的文件夹:在服务器 1 上,这个 junction 指向...假设 c:\Config (包含 config1.cfg、config2 .cfg)

在服务器 2 上,我也有 c:\Config 具有相同的文件集,但当然它们包含我不想覆盖的自己的设置。

所以我想做的是按原样复制结。相反,我从服务器 1 获取 config1.cfg 和 config2.cfg 的副本 :(

如何解决这个问题呢??

ps1。解释起来很长,但我无法避免在这里使用联结(它与必须放置配置的位置限制有关(子文件夹-'联结'指向'外部'文件夹))

ps2。操作系统是 Windows Server 2003

0 投票
1 回答
2122 浏览

asp.net - ASP.NET AJAX、WebSeal 连接和会话

我遇到了 ASP.NET AJAX(直接连接到 WebServices)并通过 WebSeal 连接访问我们的站点的问题。

清单 11. 在这个页面上;http://www.ibm.com/developerworks/tivoli/library/t-ajaxtam/index.html解释说,对不产生 text/html 内容类型的页面的请求不会与 cookie 数据一起发送。因此,没有会话。ASP.NET AJAX 请求返回内容类型为“application/json; charset=utf-8”。因此,WebSeal 联结不会将会话 Cookie 附加到请求中。由于没有会话信息,这导致我们的 WebService 将用户视为无效。

已使用 -J 参数正确设置了 Junction(这是一个大写的 J,它将 WebSeal 所需的脚本附加到页面底部 - 这可以防止强制 IE 进入 quirks 模式。)并且我们已经确认存在必要的脚本在输出源中。

在这一点上,我愿意接受任何建议,因为我没有想法。FWIW,当不通过 WebSeal Junction 访问时,该站点运行完美。

0 投票
3 回答
9793 浏览

perl - 如何在不遵循连接点的情况下删除 Windows 目录?

我有一个 Perl 脚本,它需要删除一个包含所有内容的目录。有时,此目录包含到另一个目录的连接点。如果我rmtree()天真,该rmtree()调用还将删除路口目标文件夹内的所有文件。我正在寻找一种不这样做的方法,而只是移除连接点。

非 Perl 解决方案也将受到赞赏。

0 投票
1 回答
5192 浏览

c# - 如何使用标准用户检索 Junction 或 Symlink 的目标

我正在尝试在我的程序中获取连接的目标,但我设法做到的唯一方法是:

  1. 请求备份权限
  2. 使用特殊参数 p-invoke CreateFile 以获取文件/目录的句柄。
  3. DeviceIoControl 调用获取目标。

第一步不适用于普通用户帐户,因为他们没有备份权限,而且我不想每次执行此操作时都获得 UAC 用户同意窗口。

我认为这是可行的,因为普通的“dir /A:L”命令可以解析链接的目标。

0 投票
6 回答
9056 浏览

powershell - 如果文件夹是连接点,请在 PowerShell 代码中进行测试?

如果文件夹是连接点,我如何在 PowerShell 代码中进行测试?

0 投票
2 回答
3725 浏览

asp.net - Web 应用程序的连接点或虚拟目录?

我看到联结是在许多项目中引用共享代码的常用方式。但是,我之前没有看到它们在 Web 应用程序中使用过。

我们的团队正在探索放弃虚拟目录以支持连接以简化我们的构建过程的可能性。我的目标是编制一份利弊清单,以便就这一变化做出明智的决定。

在 Web 应用程序项目中使用联结或虚拟目录是否更合适?

环境为 ASP.NET、IIS6/IIS7、VS.NET。

0 投票
2 回答
5651 浏览

windows - 如何使用 WinApi 创建连接点?

CreateHardLink创建硬链接的功能。(Win2000 起)
CreateSymbolicLinkVista 发布后的功能。

但是为什么没有CreateJunction

怎么mklink做结?
以及如何编写代码以在我的应用程序中建立连接?

0 投票
2 回答
1370 浏览

cygwin - cygwin 了解 NTFS 连接点吗?

cygwin (1.7.x) 是否理解 Windows NTFS 连接点(由 Win7/2008 中的 mklink 或 sysinternals 的 junction.exe 创建)?

它们与“ln -s”创建的符号链接有何不同?