473,790 Members | 2,617 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2267
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.c om 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2671
by: Kelly | last post by:
Hi, Sorry for this dumb question. Is there a difference between VB language and VB scripting? I need to buy a beginners VB scripting book, I just don't want to pickup the wrong one. Thanks.
41
2814
by: Richard James | last post by:
Are we looking at the scripting world through Python colored glasses? Has Python development been sleeping while the world of scripting languages has passed us Pythonista's by? On Saturday Slashdot ran this article on the "best" scripting languages. http://developers.slashdot.org/developers/04/06/12/2125229.shtml?tid=126&tid=156 "Folks at the Scriptometer conducted a practical survey of which scripting language is the best. While...
33
2742
by: Quest Master | last post by:
I am interested in developing an application where the user has an ample amount of power to customize the application to their needs, and I feel this would best be accomplished if a scripting language was available. However, I want to code this application in Python, and I have not yet heard of an implementation of another scripting language into Python. An example of what I mean is this (an implementation of Lua into Ruby -- which I'd...
24
4567
by: Kanthi Kiran Narisetti | last post by:
Hi All, I am Windows Systems Administrator(planning to migrate to Linux administration in near future), I have occassionally written few batch files and Vbscripts to automate my tasks. Now I have strong interest to learn a programming language that would help me to write Scripts or Application ( In Systems Administrative point of view) .
17
2909
by: Jared | last post by:
This is going to seem like a generic question that has been posed 1001 times and is probably very subjective, but I need some real world answers, rather than textbook answers. Let me give my background in 2-3 sentences: 1. I am a developer who has been programming for about 3 years and have done the following: - Java (1 year experience) - Visual Basic 6 (Done quite a few in house utility and add on programs)
10
1736
by: stylecomputers | last post by:
Hey guys, I am absolutely new to Linux programming, with no w######s programming experience except a small amount of C++ console apps. Reasonably new to Linux, BSD etc, got good sound networking base of knowledge and dont have any problem working the command line etc. I want to learn a language that I can use in my networking duties that is most likely to be of use to me. I have a few choices I can think of being:
3
267
by: gerryR | last post by:
Not sure where to post this as I don't know what language it applies to (yet) Basically I work in IT and often have to manipulate folder structures or large amounts of text files and am looking for the best way of automating this procedure specifically through a programming language. I did Pascal, and C++ in college (several years ago now) so I'm sure the basics of coding will come back to me once I start. Question
28
1920
by: Rico Secada | last post by:
Hi. First let me start by saying, please don't let this become a flame-thing. Second, I need some advice. I am a 35 year old programmer, who program in C/C++, PHP and Bourne Shell almost daily.
4
2378
by: Erwin Moller | last post by:
Hi, I was surprised to see that my fav. database offers PHP as a scripting language Procedural language (eg stored procedures). Untill now I always used PgPL/SQL for that. Offered by command prompt: http://www.commandprompt.com/community/plphp/ Did anybody in here use it?
0
9666
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10142
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9986
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9021
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3703
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.