开发者

Windows path with a '$' at the end

 public static string QueuePrefix = @".\Private$\";

what does the $ at the end of a string used for path traversel mean开发者_运维知识库? My google foo is not strong enough to find out.


From the name of the variable - QueuePrefix, looks like MSMQ private queue path - http://technet.microsoft.com/en-us/library/cc776346(WS.10).aspx

Otherwise, $ is a valid character in file / directory name in Windows and it could just be that. Especially since it has .\ in your case. But like others mentioned, it is used to to denote shares like \\C$ and so on.


This looks like a MSMQ (Microsoft Message Queueing)-Path to me. Private queues which are local to a system are prefixed with \Private$\ in MSMQ.


If it's a Windows system, the $ represents a hidden or administrative share. This is typically setup either by default ("C$" is the standard share for the C drive), or to obscure the shared folder so that it is not programmatically found or easy to access by unwanted users.


A dollar sign doesn't have any special meaning in a path—it's interpreted as a normal character. It is often seen as part of a path for an administrative share, e.g., \\C$\ for the C drive.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜