DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Legacy and Other Languages (http://www.daniweb.com/forums/forum42.html)
-   -   Question about DOS Batch Files (http://www.daniweb.com/forums/thread31881.html)

AJ_Allmendinger Sep 7th, 2005 10:12 am
Question about DOS Batch Files
 
I'm a newbie at writing DOS batch files. I've tried to look for it, but I can't seem to figure out how to read from an input file. Is there an equivalent of a cin statement in DOS Batch programming.

chrisbliss18 Sep 9th, 2005 10:52 am
Re: Question about DOS Batch Files
 
Batch files are just a way of grouping together calls to programs and system commands. Everything in a batch file is just something that you can do on the command line. The power comes from being able to group together numerous calls to execute a series of steps. If you are creative in how you use the tools that you have access to, you can create some seemingly intelligent behavior.

I have a feeling that you may be expecting too much out of batch files, but it could be possible to do what you want. What exactly is it that you want to do?

AJ_Allmendinger Sep 9th, 2005 12:08 pm
Re: Question about DOS Batch Files
 
You're right, I was expecting too much... I worked around it by having the autoexec.bat call a C++ program that served as a batch file except with more functionality.

Thanks....
AJ

jwenting Sep 10th, 2005 8:40 am
Re: Question about DOS Batch Files
 
What you might want to do is install something like Python or Ruby and write your scripts in that.
No need for compilers.

The_Inferno Oct 4th, 2005 7:23 pm
Re: Question about DOS Batch Files
 
Compiled languages seem to be fading. :p
Yeah I heard ruby was good too tho.

Evenbit Oct 8th, 2005 2:27 am
Re: Question about DOS Batch Files
 
Quote:

Originally Posted by AJ_Allmendinger
I'm a newbie at writing DOS batch files. I've tried to look for it, but I can't seem to figure out how to read from an input file. Is there an equivalent of a cin statement in DOS Batch programming.

Some people have figured out how to do quite a good bit of processing work via batch files: ftp://137.193.64.130/pub/

Evenbit Oct 8th, 2005 2:32 am
Re: Question about DOS Batch Files
 
Quote:

Originally Posted by jwenting
What you might want to do is install something like Python or Ruby and write your scripts in that.
No need for compilers.

Or you can install AutoIt. And you can optionally compile & compress your scripts too if you don't want to force your clients to download a runtime engine.

Evenbit Oct 8th, 2005 2:39 am
Re: Question about DOS Batch Files
 
Quote:

Originally Posted by The_Inferno
Compiled languages seem to be fading. :p
Yeah I heard ruby was good too tho.

No...the pendulum is swinging back the other way now. When was the last time that CPU clock speed doubled? As users continue to demand more functionality and more eye-candy multimedia, it will be up to the software to pull it off -- and that can't be done with interpreted languages and virtual machines.


All times are GMT -4. The time now is 5:44 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC