Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Update:</p> <blockquote> <p>Folder is created at run time with current time as the name. This process is done by the application. Here i know the folder name but i didn't know path, because path is selected by the user during installation and installation is done before very long time.</p> </blockquote> <p>That changes the question considerably. Why not use the application to tell you where it lives:</p> <p><a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.application.startuppath.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/system.windows.forms.application.startuppath.aspx</a></p> <hr> <p>I had a similar idea ages ago and wrote about it as a Code Project Tip: </p> <p><a href="http://www.codeproject.com/Tips/132804/Open-folders-using-a-Run-Command" rel="nofollow noreferrer">http://www.codeproject.com/Tips/132804/Open-folders-using-a-Run-Command</a></p> <p>Otherwise you would need to index every folder on the PC and make them unique names and look up the full path that way.</p> <p>The other suggestion I have is using LogParser as the <a href="https://stackoverflow.com/questions/10965280/most-efficient-way-to-find-all-exe-files-on-disk-using-c">Most efficient way to find all exe files on disk using C#?</a> Its a free Microsoft product but I'm not sure about re-dist permissions, I had to include it in my package separately last time I used it. It full on flys, faster than a speeding train!</p> <p>I found a <a href="http://blogs.msdn.com/b/carloc/archive/2007/08/31/find-folder-size-conditionally-with-logparser.aspx" rel="nofollow noreferrer">Log Parser example</a> that finds folders, you could try it out and adapt it if its useful:</p> <pre><code>SELECT TOP 1 * FROM C:\TFS\Project\*.* WHERE INDEX_OF(Path, 'Database') &gt; 0 </code></pre> <blockquote> <p>The good folks over at <a href="http://visuallogparser.codeplex.com/" rel="nofollow noreferrer">http://visuallogparser.codeplex.com/</a> have provided us with the source code.</p> </blockquote> <p>Open the <a href="http://visuallogparser.codeplex.com/" rel="nofollow noreferrer">VisualLogParser</a> solution in VS2010, ignore the prompt about debugging, after the solution loads, F5, set the combo-box to FS (FileSystem), paste in this query and press go. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload