By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,203 Members | 1,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,203 IT Pros & Developers. It's quick & easy.

Preferred language for shell scripting?

P: n/a
Hi all,

I'm a Unix guy from way back, who's enjoying learning C# and Windows
programming. Overall, it's not such a difficult transition (as long as one
keeps an open mind :) ), but there is one thing from Unix I miss the most -
the command line.

I've install a Unix like programming environment, call MSys, which let's me
do command line programming the way I want to, with the bash shell, and this
is running smoothly (vim editor, bash, C# compiler, SDK documentation - all
working).

I'm wondering though, what do experienced Windows programmers use for shell
commands, and scripts. Surely not DOS - I mean, that sucks. I've heard of
VB-Script and Javascript being used as shell scripts, but I wouldn't know
where to begin with that, and wouldn't know if it is worth trying.

Surely don't open Windows Explorer every time you want to move or rename a
file? LOL!

So, what do you guys use?

- Javaman (showing his roots)

Nov 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Python. Also see Microsoft Tech Center for some sample Python scripts
(and explore other scripting languages).

http://www.microsoft.com/technet/scr...n/pyindex.mspx

HTH,
Alex

Nov 17 '05 #2

P: n/a
Sometimes we use the GUI, distasteful as that may be. If scripting is
needed, VBScript can be used, as you indicated. There are of course as
you already know, UNIX-style shells, and proprietary alternatives, Ruby
interpreters, various utility programs, and I have been known to whack
together C# programs that use the Directory, DirectoryInfo, File and
FileInfo classes to automate common operations.

Frankly I don't have that much call for it, so don't really live in the
scripting world that much and haven't developed a strong preference for
anything in particular. Visual Studio takes care of 99% of the file
management required for a project and that's where I do most of my
development.

--Bob

Javaman59 wrote:
Hi all,

I'm a Unix guy from way back, who's enjoying learning C# and Windows
programming. Overall, it's not such a difficult transition (as long as one
keeps an open mind :) ), but there is one thing from Unix I miss the most -
the command line.

I've install a Unix like programming environment, call MSys, which let's me
do command line programming the way I want to, with the bash shell, and this
is running smoothly (vim editor, bash, C# compiler, SDK documentation - all
working).

I'm wondering though, what do experienced Windows programmers use for shell
commands, and scripts. Surely not DOS - I mean, that sucks. I've heard of
VB-Script and Javascript being used as shell scripts, but I wouldn't know
where to begin with that, and wouldn't know if it is worth trying.

Surely don't open Windows Explorer every time you want to move or rename a
file? LOL!

So, what do you guys use?

- Javaman (showing his roots)

Nov 17 '05 #3

P: n/a
> I'm a Unix guy from way back, who's enjoying learning C# and Windows
programming. Overall, it's not such a difficult transition (as long as one
keeps an open mind :) ), but there is one thing from Unix I miss the most -
the command line. .... So, what do you guys use?

Perl. Sometimes any language supported by the WSH (Windows Scripting Host),
which means VBScript, JavaScript or Perl.
I use the Perl 5.8.x from ActiveState
http://www.activestate.com/Products/...?id=ActivePerl
Has a lot of Windows modules, includes Tcl, COM and WSH support.
They also have a Python, if you prefer.

Instead of the plain shell and instead of Explorer I am using FAR Manager
(http://farmanager.com), a Norton Commander clone (brother to Midnight
Commander, but better :-).
Has macros, free SDK, and tons of plugins.
Is $25, demo version avalable, and you can buy it from
http://www.rarsoft.com/
I start it at the begining of the day, close it at the end of the day,
I berly see Explorer. And I can do anything with is about 10 times
faster than anyone can do it with Explorer.

--
Mihai Nita [Microsoft MVP, Windows - SDK]
------------------------------------------
Replace _year_ with _ to get the real email
Nov 17 '05 #4

P: n/a


li*****@gmail.com wrote:
Python. Also see Microsoft Tech Center for some sample Python scripts
(and explore other scripting languages).


LazyPython & deep_reload makes using python as an interactive shell even
easier. Get them at http://www.idyll.org/~n8gray/code/index.html

--
Helge Jensen
mailto:he**********@slog.dk
sip:he**********@slog.dk
-=> Sebastian cover-music: http://ungdomshus.nu <=-
Nov 17 '05 #5

P: n/a
Thanks everyone. Your opinions and information have been most helpful. I was
not aware that MS provided so much assistance for scripting, or of the other
commercial products out there.

- Javaman

Nov 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.