Recognising what code makes use of the local drive
Hi All (Been a while)
I have been given a bit of an epic job.
I have an enormous code base. Literally hundreds of folders with thousands of VB.net and VB solutions scattered around.
My job is to search through all the code and identify where the code in some way hits the local drive. Any code that for example alters a registery key or reads a file from current applicationpath/sub folder.
I will use some kind of grep tool or will write one myself.
What the heck should I search for? There are so many ways to mess around with the client machine.
All comments welcome. Thanks in Advance :-)
Re: Recognising what code makes use of the local drive
Quote:
I will use some kind of grep tool or will write one myself.
It would be fairly easy to create an app to loop through all those folders and read in the code files into a list. You can then do all sorts of matching.
Sooooooooooooo as you have said the only issue you have really is identifying all the ways you could "mess with the local machine", which is a bit of a broad definition.
Quote:
What the heck should I search for?
"C:\" , RegistryKey , Application.Path, Environment.SpecialFolder, File.Copy, File / Folder Dialogs (which if you have a naming precedent will be easier to find)
to start you off!
Re: Recognising what code makes use of the local drive
look for streams - filestreams, memory streams - readalllines, writealllines, read/writealltext... basically any file operations.
seems like an odd assignment, but im guessing some one has a reason for this.
-tg
Re: Recognising what code makes use of the local drive
Quote:
Originally Posted by
NeedSomeAnswers
It would be fairly easy to create an app to loop through all those folders and read in the code files into a list....
Will it find itself, though?! :o