unknown files

  • Thread starter Thread starter capt edgar
  • Start date Start date
C

capt edgar

Hi there

I'm a newbie to programming but very much willing to work hard and
try. We have about 100 servers and on each servers we have the g
drive
and e drive. early this year there were some temp files dumped all
over the 100 servers under variuos folders and subfolders so i have
been assigned a task to clean this up. Any chance someone can guide
me
in getting an automated script where all i need to do is enter the
list of servers and the file extension to search and then script
would
scan for the file extension on all 100 servers and each of the drives
associated with it. The results should be written into a text file.
Once the file is searched, there should be a form which should ask to
delete those files or leave it

please help

regards
 
capt said:
Hi there

I'm a newbie to programming but very much willing to work hard and
try. We have about 100 servers and on each servers we have the g
drive
and e drive. early this year there were some temp files dumped all
over the 100 servers under variuos folders and subfolders so i have
been assigned a task to clean this up. Any chance someone can guide
me
in getting an automated script where all i need to do is enter the
list of servers and the file extension to search and then script
would
scan for the file extension on all 100 servers and each of the drives
associated with it. The results should be written into a text file.
Once the file is searched, there should be a form which should ask to
delete those files or leave it

I suspect that you may find the PowerShell utility easier to use and
workable for this task.

..NET does of course have everything you'll need to accomplish this,
including support for displaying graphical windows and other
user-interface elements. But if you know nothing about programming at
all, you first have to learn C#, and then .NET, and then the specific
parts of .NET related to your needs.

None of this is impossible, but most people starting to program from
ground zero don't begin with a specific task in mind that they need to
get done. The initial learning curve takes long enough that learning to
program and getting something done that needs to be done are usually
mutually exclusive.

I suggest PowerShell only because as a scripting engine, it has (or
should have) a somewhat lower bar in terms of programming skill. Still,
if you literally are completely new to programming, even that may
present some significant time spent learning how to get it to do what
you want.

As far as your specific task goes, you'll find much of what you need in
the System.IO namespace (where you can find classes and methods for
accessing files, enumerating directories, etc.) and the
System.Windows.Forms or System.Windows namespaces (where you can find
support for using Forms or WPF, respectively, to present the UI for
asking the user whether to delete or not).

Pete
 
Back
Top