?
Solved

What are batch files and scripts?

Posted on 2000-03-20
5
Medium Priority
?
175 Views
Last Modified: 2013-12-28
In my mind I keep imagining that I'm an expert but I STILL can't seem to figure out just what in the world batch files and scripts are?

I'm to the thinking that I could type out the commands in Windows Notepad and then execute them by clicking on the file?  Yes/No?

How is it you run scripts or batch files?

What sort of problems do these solve? Are they the same thing?

I've always wanted to be able to open up the file info for my MP3's and have the Artist field come from the first past of a file, and the Title field to come from the second part of the file because I always name my files in a particular format (Artist Name - Title of Song.mp3) and could I use batch or script or what? (this paragraph need not be answered to receive points but would be appreciated.)

Points awarded to whoever can provide the BEST answer with "novice" step by step instructions.
0
Comment
Question by:Kilo5
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 12

Expert Comment

by:pjknibbs
ID: 2636453
Batch files are holdovers from the old MS-DOS days--they're basically a sequence of MS-DOS commands, and they run in a command prompt when you double-click them. Script files are a more recent addition in the Windows world (full scripting languages have been standard on Unix for decades)--they're considerably more powerful than batch files, but thus require more effort to write and understand.

Both batch files and script files can be created in any text editor--Notepad will do fine--but you need to save them with a different extension: BAT for batch files, VBS for script files using the VBScript language, and JS for script files using the JScript language.

In order to do what you want with your MP3 files you'd need reasonable string handling functions, which immediately rules out batch files. If you have any experience with VBScript (from doing Web pages or whatever) or just Visual BASIC in general, have a look at the sample script files installed in \WINDOWS\SAMPLES\WSH to see how they work.
0
 

Author Comment

by:Kilo5
ID: 2638404
Can you give me any web pages or Microsoft Knowledge Database addresses in which I can learn how to make them do whatever.  I'll need some pretty newbie instructions.  I don't know ANY commands.  I'm only in my first few weeks of COBOL here at college, and I know HTML if that helps.

I suppose technically though if you know of anyplace that just has some really good example files or something, maybe I could glean something from those.  Also do you know of a place to get Visual Basic for free?
0
 
LVL 12

Accepted Solution

by:
pjknibbs earned 150 total points
ID: 2639214
Visual BASIC is a commercial application and is therefore not legally available for free. There is a learning edition available with some VB books, but it will only run programs within the IDE--you can't make redistributable programs with it.

As for example files, like I said, there should be some in the \WINDOWS\SAMPLES\WSH folder. I'm afraid I don't know of any Web resources that would help.
0
 

Author Comment

by:Kilo5
ID: 2643025
what exactly do those "example" files do?
0
 
LVL 12

Expert Comment

by:pjknibbs
ID: 2643635
They're commented internally and also display a helpful message when you run them to say what they do.
0

Featured Post

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question