If you have a newer Windows OS (Vista, Win 7, Win 2008), then you can
use powershell.
I know in some environments you can't install software (even if it's
free) because of company policies.
I did a search and the following, based off of combining a lot of
different articles, will create a file with a list of all the files that
have cffile (in any combination of upper and lower case) in it. My
regex isn't the greatest, so I'll leave the unc part to you, but it's a
start. (I used the E drive, but change it to whatever drive you need.)
Note, power shell is case sensitive.
get-childitem e:\ -filter *.cf* -recurse | Select-String -pattern
"[cC][fF][iI][lL][eE]" | foreach { $_.path } | Out-File
e:\cffileList.txt
Steve
-----Original Message-----
From: Bobby Hartsfield [mailto:[email protected]]
Sent: Thursday, May 06, 2010 7:15 PM
To: cf-talk
Subject: RE: Search for any <cffile...> that is referencing any UNC
path.
+1 for Agent Ransack. I've used it every day since Charlie A pointed it
out
to me some time ago. A quick regex search would make light work of this.
DW and CFEclipse could also do a regex search for you (although, MUCH
slower
than Agent Ransack)
-----Original Message-----
From: Judah McAuley [mailto:[email protected]]
Sent: Tuesday, May 04, 2010 4:51 PM
To: cf-talk
Subject: Re: Search for any <cffile...> that is referencing any UNC
path.
Try Agent Ransack. Brilliant file search tool and free to boot. So
much faster than Windows search.
http://www.mythicsoft.com/page.aspx?type=agentransack&page=home
It supports regexes as well, so you might be able to get a more fine
grained search in with that.
Cheers,
Judah
On Tue, May 4, 2010 at 1:46 PM, Ian Skinner <[email protected]> wrote:
>
> I have a pretty tall challenge here. ?Search our entire code base for
> any cfml file that uses a <cffile...> tag to read or write to a
network
> resource with an UNC path. ?My tools available - whatever comes on an
> ordinary Windows XP workstation.
>
> Any ideas? ?I used the Windows Search for <cffile....> and got a
largish
> list, but I know many of those do not deal with UNC paths. ?I could
not
> find any way to search only the search results. ?I attempted to try a
> search for <cffile*"// ?But I realized that would be a very broad
search
> and that it probably would not finish before the state furloughs
ended.
> But, instead, it just crashed my Windows Explorer after several
minutes.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333492
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm