General advice

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi,
I started to learn C# last year and was doing really well. Started writing
ASP.NET apps for my company, then I was pulled back into server
administration. I tried to modify an app that I wrote last year, and
realized I forgot almost EVERYTHING I've learned. It's because I had not
done it in about a year :(
I'd love to use C# in my every day work so I don't forget it again.. so,
here's my question...
Can C# be used in place of VBScript for doing Server/Network administration
stuff? I know it's extreme overkill for administrative scripting, but can
it be done? I was about to start learning vbscript for admin tasks, but if
I can do it in C#, would rather.
And if so, is there a web or papers or any info on doing this?
Tnx!
 
Hello John,

Forget about vbscritps, PowerShell comming. See http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx
it totally rocks for the scripting

J> I started to learn C# last year and was doing really well. Started
J> writing
J> ASP.NET apps for my company, then I was pulled back into server
J> administration. I tried to modify an app that I wrote last year, and
J> realized I forgot almost EVERYTHING I've learned. It's because I had
J> not
J> done it in about a year :(
J> I'd love to use C# in my every day work so I don't forget it again..
J> so,
J> here's my question...
J> Can C# be used in place of VBScript for doing Server/Network
J> administration
J> stuff? I know it's extreme overkill for administrative scripting,
J> but can
J> it be done? I was about to start learning vbscript for admin tasks,
J> but if
J> I can do it in C#, would rather.
J> And if so, is there a web or papers or any info on doing this?
J> Tnx!
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
I would actually look at power shell (monad) for your admin tasks.

Cheers,

Greg Young
MVP-C#
 
Hi guys,
Thanks.
I did see that was coming. But also need to maintain my C# apps... so would
rather use C#.. IF it makes sense to do such? I prefer to do development
work rather than Admin work in the future anyway... but being stuck doing
admin work, I thought I could sneak in C# there by using it for the "script
jobs".

So, I assume do either scripting, or c# I guess rather than forcing one to
do the other?

Thanks again.
 
You could write C# console applications to do specific jobs, then
string them together with scipts to perform your admin work.

Admittedly this wouldn't much help you maintain your ASP.NET skills,
but at least you'd keep your hand in with simple C# apps.
 
Sure you could. But you wouldn't be able to "script" it. It's compiled.
Still, you could certainly create assemblies and executables in C# to do
what you're doing with scripts now.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.
 
The whole point of Power shell is that it's extensible, that means that you
can add your own 'commandlets' to the ones available with the base distro.
It's also possible to create Shell AddIn's which can be dynamically added to
the shell.
A CmdLet can be authored using any managed language and can be scripted, so
this is realy what you are ooking for.

Willy.


| Hi guys,
| Thanks.
| I did see that was coming. But also need to maintain my C# apps... so
would
| rather use C#.. IF it makes sense to do such? I prefer to do development
| work rather than Admin work in the future anyway... but being stuck doing
| admin work, I thought I could sneak in C# there by using it for the
"script
| jobs".
|
| So, I assume do either scripting, or c# I guess rather than forcing one to
| do the other?
|
| Thanks again.
|
|
| | > Hi,
| > I started to learn C# last year and was doing really well. Started
writing
| > ASP.NET apps for my company, then I was pulled back into server
| > administration. I tried to modify an app that I wrote last year, and
| > realized I forgot almost EVERYTHING I've learned. It's because I had
not
| > done it in about a year :(
| > I'd love to use C# in my every day work so I don't forget it again.. so,
| > here's my question...
| > Can C# be used in place of VBScript for doing Server/Network
| > administration stuff? I know it's extreme overkill for administrative
| > scripting, but can it be done? I was about to start learning vbscript
for
| > admin tasks, but if I can do it in C#, would rather.
| > And if so, is there a web or papers or any info on doing this?
| > Tnx!
| >
|
|
 
Back
Top