Please help w/batching?

G

gabe c

Sorry to bother everyone...
If I want to create a batch file to clear the screen and display a file in
the a: drive is this how...
1st. create the bat file example
eettxt.bat (right)?
then put the commands
cls
A:\folder\name of file
and save.... (right)
How can I access the batch in any drive or can I only access it in the
folder I save it in?
 
A

Al Dunbar [MS-MVP]

gabe c said:
Sorry to bother everyone...
If I want to create a batch file to clear the screen and display a file in
the a: drive is this how...
1st. create the bat file example
eettxt.bat (right)?

There doesn't seem to be anything wrong with the above statement.
then put the commands
cls
A:\folder\name of file

That is not a command. You probably meant something like:

type "A:\folder\name of file"
and save.... (right)

Of course. But what software are you using to edit and save the file?
Notepad would be good. Word would work to, but there are issues to deal
with...
How can I access the batch in any drive or can I only access it in the
folder I save it in?

This is not a batch programming question, as how to access batch files
wherever they are located raises the same issues as accessing other
applications. If you know nothing of the concept of the PATH variable, or
fully qualified path names, then this is not the place for that learning to
take place.

This newsgroup is generally directed towards slightly more advanced batch
programming techniques for administrative purposes than helping people with
beginner level problems. I would recommend you try the alt.msdos.batch group
(or perhaps alt.msdos.batch.nt if you are using nt4, w2k, or xp).
Here is a sample answer to your type of question (watch for line-wrapping of
the url):

http://groups.google.ca/groups?q=ba...UTF-8&[email protected]&rnum=3


/Al
 
G

Guest

cd\
c: (if that is the directory where the file u want to
save is)
cd (type the path of the files folder)
copy (file name) a:\(file name)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top