471,599 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,599 software developers and data experts.

Preferred language for shell scripting?

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
5 2152
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
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
> 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


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
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.

Similar topics

41 posts views Thread by Richard James | last post: by
24 posts views Thread by Kanthi Kiran Narisetti | last post: by
17 posts views Thread by Jared | last post: by
3 posts views Thread by gerryR | last post: by
28 posts views Thread by Rico Secada | last post: by
4 posts views Thread by Erwin Moller | last post: by
2 posts views Thread by XIAOLAOHU | last post: by
reply views Thread by Anwar ali | last post: by

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.