Computing.Net > Forums > Disk Operating System > writing batch files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

writing batch files

Reply to Message Icon

Name: Jeff
Date: November 18, 1999 at 17:03:51 Pacific
Comment:

If I remember correctly writing batch files are similar to Basic files....
So anyone got the all time guide to writing complex batch files?

Also looking for a place that shows me how to do frames and just about everything else on HTML...



Sponsored Link
Ads by Google

Response Number 1
Name: nanoguru
Date: November 18, 1999 at 18:18:56 Pacific
Reply:

kris Jarma has a book about batch files. I think the name is correct. This is probably one of many books on the subject.


0

Response Number 2
Name: browser
Date: November 19, 1999 at 07:47:55 Pacific
Reply:

Try here

http://bigfoot.com/~batfiles/


0

Response Number 3
Name: Bjarni Juliusson
Date: November 22, 1999 at 00:10:50 Pacific
Reply:

You cannot write complex MSDOS batches!


0

Response Number 4
Name: MONTANA
Date: November 23, 1999 at 21:11:20 Pacific
Reply:

OH REALLY, BJARNI?
WHAT ABOUT INCORPORATING ASSEMBLY LANGUAGE CODE INTO YOUR BATCH PROGRAM FILES?
THAT CAN BECOME QUITE COMPLEX.
NT DOS BAT FILES CAN BE A CHALLENGE.
CAN YOU WRITE A BAT FILE THAT GETS USER INPUT INTO THE ENVIRONMENT AS A SYSTEM VARIABLE, PARSES IT AND RETURNS A VALUE TO
ANOTHER PROGRAM (AS A PARAMETER) SUCH AS VISUAL FOXPRO OR BASIC? I HAVE DONE IT, AND FOUND IT TO BE A FAIRLY SATISFYING TASK.
JEFF TRY SEARCHING FOR "DIRK VAN DEUN" HE HAS A COUPLE OF INTERESTING THINGS TO SAY ON BAT FILE PLUGGING.


0

Response Number 5
Name: ted.johnson
Date: November 24, 1999 at 09:46:36 Pacific
Reply:

Does any one know how to check for the Atribute of a file with a batch program?


0

Related Posts

See More



Response Number 6
Name: nanoguru
Date: November 24, 1999 at 17:43:55 Pacific
Reply:


The actual code that handles batch file processing is in command.com.
The microsoft command.com version is just one of many command interpreters for dos.
Try using NDOS.com which is a command interpreter from the Norton uilities version7. (I haven't tried the other versions). One of the batch file keywords under Ndos is called "input"
A batch file line would look like:
input enter the info %%var
echo %var
This actually allows you to enter a response from within a batch file and it will print out what you entered into the variable. If you use command.com the closest you can get is entering the variable contents via the command line. Please anyone help me if there is a way to get input from within a batch file, similar to NDOS's method, using command.com.


t


0

Response Number 7
Name: Roland Olsson
Date: July 5, 2000 at 03:49:58 Pacific
Reply:

I want a list of errorlevel commands in this page please!!


///batchlover


0

Response Number 8
Name: Junaid Faruqui
Date: October 7, 2000 at 04:31:30 Pacific
Reply:

hello friends,

i need help writing a batch file that will open pkzip - and create a zip file of an entire network drive and store it in a folder with a different filename each time depending on the date eg.23sept2000.zip ... can some kind guru please help me out as i have no idea how to write batch files .. except the most simple logon scripts ..

thank you all so much ..please mail me with any help you could give me ..


0

Response Number 9
Name: Tina
Date: December 5, 2000 at 08:16:18 Pacific
Reply:

hello,

I need help to write a batch file that will delete files from 2 folders on a server. this batch file has to run 1 a month and the files have to be deleted by the day they where modified


0

Response Number 10
Name: Somah
Date: December 14, 2000 at 10:47:05 Pacific
Reply:

Hi guys and gals,

I hate to say this without sounding stupid in this sophisticated forum, but I really need to write a batch that will get me the DOS prompt with a path set to d:/java2

I need this to expedite tthe process of accesing my JAVA folder on Drive D:

I also want to know how to specify your command prompt text (i.e. my text:> __ )

Thanks


0

Response Number 11
Name: G. Beverly
Date: January 3, 2001 at 05:37:24 Pacific
Reply:

I need help writing a batch file that will allow me to ping a node with the constant ping switch of -t. I administer many servers abd i wanted to have a window of DOS windows running the ping utility for me to monitor. Someone help if you can. appeciative in advance. Thanks


0

Response Number 12
Name: Danny Sizemore
Date: January 3, 2001 at 09:07:08 Pacific
Reply:

ATTN: Somah and G. Beverely

Somah,
You just need a very simple bat file. Use a text editor (i.e. notepad or edit) create a text file with the extension ".bat" then type in the commands as if you were at the command line. Your text could be as simple as:
d:\java2

As far as the command prompt is concerned just type in the following command at the DOS command line:
PROMPT yourdesiredtext$G

Example:
prompt mytext$g
would create a prompt of
mytext>

G. Beverely,
Your question also has a fairly simple solution. Create a text file called "something.bat" and then insert the folling text:
:start
ping -t xxx.xxx.xxx.xxx
GOTO start

(xxx.xxx.xxx.xxx = node which you want to ping)


I hope I answered your questions. If not then send me an e-mail as I do not check this forum very often.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: writing batch files

PLEASE HELP : WRITING BATCH FILE www.computing.net/answers/dos/please-help-writing-batch-file/4340.html

need help writing batch file www.computing.net/answers/dos/need-help-writing-batch-file/4728.html

batch file www.computing.net/answers/dos/batch-file/11146.html