Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows path with a '$' at the end

Tags:

c#

.net

 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.

like image 411
gh9 Avatar asked Oct 12 '11 19:10

gh9


People also ask

What does \\ mean in Windows path?

They indicate that the path should be passed to the system with minimal modification, which means that you cannot use forward slashes to represent path separators, or a period to represent the current directory, or double dots to represent the parent directory.

What is a UNC path in Windows?

Answer: A UNC path, or Universal Naming Convention, is simply a shared folder on a computer. The purpose for this folder is so when you upgrade, the registers and back office computers know where the upgrade file is and can connect to it. An example of an UNC path is \\ComputerName\SharedFolder.

What is an image path?

A list of directories in which to look for image files.

How do I create an absolute path in Windows?

How to find the absolute path in Windows. You can determine the absolute path of any file in Windows by right-clicking a file and then clicking Properties. In the file properties first look at the "Location:" which is the path to the file. In the picture below, the location is "c:\odesk\computer_hope".


3 Answers

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.

like image 66
manojlds Avatar answered Nov 10 '22 14:11

manojlds


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.

like image 22
Stefan Tröndle Avatar answered Nov 10 '22 14:11

Stefan Tröndle


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.

like image 4
mbursill Avatar answered Nov 10 '22 14:11

mbursill