473,398 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

IDE Replace in Files doesn't work

Hi,

I have .NET 2003. When I run "Find in Files" command, everything works as
expected. However when I run "Replace in Files" with the same settings a and
press Find Next, I get: "Look in: A specified directory or file is not
available or does not exist."
There is nothing special in my settings, I don't use regular searches, I
search in "Entire solution".

Best regards, Jan
Nov 17 '05 #1
5 1508
Hi Jan

Thanks for posting in the community.
First I would like to confirm my understanding of your issue.
From your description, I understand that when press "Find Next" of the
"Replace in Files" dialog box in the VS.NET 2003, you get: "Look in: A
specified directory or file is not available or does not exist." message.

Have I understood you right? If anything misunderstood, please feel free to
let me know.

Since the "Find Next" operation of the "Replace in Files" dialog box worked
as expected on my side, I want to know is it a general case in all of your
VS.NET 2003 projects, or just a particular case in your current working
projects?

If it is a particular case, maybe some certain files or directories of your
working solution currently can't be accessed by the VS.NET IDE due to some
reason.

BTW, what's you configuration of the "Look in" Dialog Box of the "Replace
in Files" Dialog Box, is it a default setting or a special one?
Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 17 '05 #2
Hi Gary,
First I would like to confirm my understanding of your issue.
From your description, I understand that when press "Find Next" of the
"Replace in Files" dialog box in the VS.NET 2003, you get: "Look in: A
specified directory or file is not available or does not exist." message.
Yes, the text appears in Find Results window
Since the "Find Next" operation of the "Replace in Files" dialog box worked as expected on my side, I want to know is it a general case in all of your
VS.NET 2003 projects, or just a particular case in your current working
projects?
I realized, that it works for me too when I fill in directory into the "Look
in" option. However when I use "Entire solution" or "Current project" it
doesn't work. It doesn't work for any of my projects.
If it is a particular case, maybe some certain files or directories of your working solution currently can't be accessed by the VS.NET IDE due to some
reason.
Surely not, the "Find in files" works fine and when I use the folder instead
of "Entire Solution", it works.
BTW, what's you configuration of the "Look in" Dialog Box of the "Replace
in Files" Dialog Box, is it a default setting or a special one?


Default settings, there is nothing special.

Thanks, Jan
Nov 17 '05 #3
"Jan Bares" <ja*******@antek.cz.no.spam> wrote:
I realized, that it works for me too when I fill in directory into the
"Look in" option. However when I use "Entire solution" or "Current
project" it doesn't work. It doesn't work for any of my projects.


Just something to try, as there was a problem with this back in VS.NET
2002: change the file types it looks for, see if it makes any difference. I
remember that it wouldn't work for me with VS.NET 2002 unless I used "*.*".

Just a maybe...

--
harry
Nov 17 '05 #4
Hi Jan,

Just a try to isolate your IDE's problem:
You can use the FileMon (http://www.sysinternals.com) when this occurs and
see what kind of file accesses that the IDE is trying to make.

Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 17 '05 #5
Jan,
Since we have not been able to repro the issue, we would like to know what
files and folders are being accessed when you click on the Find Next
button, we will use the tool below to generate a log that will give us this
information,

http://www.sysinternals.com/files/NTFILMON.ZIP

Run Filemon.exe, once the file monitor window shows up, press Ctrl+E, you
will see a small red check mark on the magnifying glass icon in the
toolbar, then press Ctrl+X to clear the display. Now press Ctrl+L to bring
up the filter dialog, for the include field key in devenv* and make sure
all the check boxes in the dialog are checked, click on the Apply and then
the OK button.

Now start VS.NET and load any solution that you can repro the problem with.
Bring up the Replace in Files dialog.Go back to file monitor and press
Ctrl+E - the red check mark on the magnifying glass icon will go away.
Click the Find Next button on the Replace in Files dialog, you will see the
"Look in...." dialog, while the dialog is sitting on the desktop, go to
file monitor and press Ctrl+E and then click on the File menu in file
monitor and choose the save as option to save the log.

Please send this log to us.

Thanks,
Mukhtar

This posting is provided "AS IS" with no warranties, and confers no rights.

©2004 Microsoft Corporation. All rights reserved.

Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Cortes | last post by:
Hi all, Suppose I want to add 1 single line: <script src = "/sample.js" type="text/javascript"></script> to every single webpage ( preferrably right after the tag <head>) under the root...
10
by: hokieghal99 | last post by:
import os, string print " " setpath = raw_input("Enter the path: ") def find_replace(setpath): for root, dirs, files in os.walk(setpath): fname = files for fname in files: find =...
19
by: rbt | last post by:
Here's the scenario: You have many hundred gigabytes of data... possible even a terabyte or two. Within this data, you have private, sensitive information (US social security numbers) about your...
1
by: Thomas | last post by:
It looks like the String.replace doesn't work in IE6.1. Anyone else has the same problem. I am using newest service package of IE and Win2K. Thanks
8
by: Eric Lilja | last post by:
Hello, I had what I thought was normal text-file and I needed to locate a string matching a certain pattern in that file and, if found, replace that string. I thought this would be simple but I had...
8
by: Guy | last post by:
Hi, I'm trying to run this code : strFileContentsHTML.Replace(vbLf, "<br>") strFileContentsHTML.Replace(vbCrLf, "<br>") strFileContentsHTML.Replace(vbCr, "<br>") It doesn't replace newline...
0
by: Xah Lee | last post by:
Interactive Find and Replace String Patterns on Multiple Files Xah Lee, 2006-06 Suppose you need to do find and replace of a string pattern, for all files in a directory. However, you do not...
2
by: Ola K | last post by:
Hi guys, I wrote a script that works *almost* perfectly, and this lack of perfection simply puzzles me. I simply cannot point the whys, so any help on it will be appreciated. I paste it all here,...
0
by: Peter Anthony | last post by:
Granted, it doesn't fit the name 'replace in files' perfectly. But it is awkward sometimes when I open up 'replace in files' and realize I have to open up 'quick replace' if I want to replace just...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.