473,403 Members | 2,222 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,403 software developers and data experts.

General advice

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!
May 16 '06 #1
6 1217
Hello John,

Forget about vbscritps, PowerShell comming. See http://www.microsoft.com/windowsserv...l/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
May 16 '06 #2
I would actually look at power shell (monad) for your admin tasks.

Cheers,

Greg Young
MVP-C#
"John" <no@email.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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!

May 16 '06 #3
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.
"John" <no@email.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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!

May 16 '06 #4
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.

May 16 '06 #5
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.

"John" <no@email.com> wrote in message
news:uu**************@TK2MSFTNGP04.phx.gbl...
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.
"John" <no@email.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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!


May 17 '06 #6
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.
"John" <no@email.com> wrote in message
news:uu**************@TK2MSFTNGP04.phx.gbl...
| 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.
|
|
| "John" <no@email.com> wrote in message
| news:%2****************@TK2MSFTNGP05.phx.gbl...
| > 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!
| >
|
|
May 17 '06 #7

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

Similar topics

2
by: Hmmm... | last post by:
For the most part I understand the VB "Language". I also understand C, C++, JAVA, JavaScript, etc, etc. What always holds me back is that I don't know what to do with them. I mean, I have good...
6
by: Örjan Skoglösa | last post by:
Hi all, My first posting here. I would be very thankful for a general advice about which "way to go" to accheive a certain arrangement on a web page. The page should show a list of items (a...
6
by: Alex | last post by:
Hello I am intersting in developing and my background is VBA used in Excel and a brief intro to Java. I am interested in learning beyond VB and feel that C++ would be a very good language to...
7
by: Joe Ross | last post by:
I've been working with Microsoft support for over 3 weeks now on an intermittent General Network Error we're seeing in our production environment between our ASP.NET application and SQL Server...
1
by: Jolly Student | last post by:
Dear Colleagues: Thank you for taking the time to read this - I recently posted here with regards to what was possible with .NET. I have been working as a systems engineer for about...
6
by: J Rieggle | last post by:
Hi there, I am stuck on a problem that relates to eCommerce sites, but isnt ASP.NET specific (sorry). The ecommerce site is working in the UK, and products will be sold in pounds stirling. ...
4
by: tony | last post by:
I'm designing a survey form page that will be fairly complex and am becoming confident enough with PHP now to tackle most things. (Thanks to everyone here who has helped) Before I go too far...
37
by: dmoran21 | last post by:
I am a mathematician trying to write a program in C to do some curve fitting. When I get to the point where I attempt to enter data in my arrays, I get a General Protection Exception error message....
2
by: SpotNet | last post by:
Scott M. Have your experiences shown you that programmers may give the best computer advice, analysis, and solutions even at the worst of times, for a PC user? ;~D Haven't crossed many Network...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.