2014-12-03 52 views
0

我正在使用Visual Studio 2013 Express。我正在使用Ctrl/Shift/f來搜索一個字符串。它沒有找到字符串。下面是搜索的結果:VS 2013未找到字符串

Find all "tsolb", Keep modified files open, Find Results 1, "C:\DokanTestDirectory\2220", "*.s" 
    No files were found to look in. 

但是,如果使用一個CMD方法的字符串中發現:

C:\>findstr /s /i "tsolb" "C:\DokanTestDirectory\2220\*.s" 
C:\DokanTestDirectory\2220\TSO.S:*MACLIB TSOLB 

C:\> 

要嘗試找出我複製TSO.S到另一個目錄,並試圖問題VS再次...這工作:

Find all "tsolb", Keep modified files open, Find Results 1, "c:\temp\2220", "*.s" 
    C:\temp\2220\TSO.S(1):*MACLIB TSOLB                 
    Matching lines: 1 Matching files: 1 Total files searched: 1 

下面是兩個目錄的內容:

C:\>dir c:\DokanTestDirectory\2220 /a 
Volume in drive C has no label. 
Volume Serial Number is ECBC-051A 

Directory of c:\DokanTestDirectory\2220 

12/02/2014 07:55 PM <DIR>   . 
12/02/2014 07:55 PM <DIR>   .. 
11/28/2014 06:06 PM   951,692 TSO.S 
       1 File(s)  951,692 bytes 
       2 Dir(s) 166,707,027,968 bytes free 

C:\>dir c:\temp\2220 /a 
Volume in drive C has no label. 
Volume Serial Number is ECBC-051A 

Directory of c:\temp\2220 

12/02/2014 07:57 PM <DIR>   . 
12/02/2014 07:57 PM <DIR>   .. 
11/28/2014 06:06 PM   951,692 TSO.S 
       1 File(s)  951,692 bytes 
       2 Dir(s) 166,707,548,160 bytes free 

C:\> 

有誰知道會發生什麼事?

回答

0

我發現了這個問題。文件夾c:\ DokanTestDirectory \ 2220具有S屬性,但是當我創建文件夾c:\ temp \ 2220時,文件夾2220沒有獲得S屬性。所以我想VS 2013 Express不會在具有S屬性的文件夾中找到文件,除非您專門命名該文件。