Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

MS DOS Batch file in Win95

MS DOS Batch file in Win95

MS DOS Batch file in Win95

I am writing a batch file to store on my desktop as an Icon.
I need to know the command that tells the computer to continue (as it would if you hit the enter key) so that the batch doesn't stop and ask you to hit enter after you put a disk in the drive as well as when it asks for volume label.
Any help would greatly be appreciated!

RE: MS DOS Batch file in Win95

echo y¦ format a: /v:volume_name

It will still print the "Hit ENTER to continue" but it automatically formats the disk. Use /q if you want to do a "quick" format. "format /?" gives you all the options for format.

Hope this helps,
Paul Kincaid

P.S. Make sure there is no space between the "y" and the pipe - for some reason it won't work that way.

RE: MS DOS Batch file in Win95

The batch file partially works but when it gets to the line format another it locks up and the only way to close the dos window is to Ctrl Break and terminate the batch file.

RE: MS DOS Batch file in Win95

Hmmm....  Unfortunately I only have WinNT machines around, but when I do this (without the quotes) -- "echo y¦ format a: /v:volume /q" it formats and exits with no prompts...

Is the batch file actually on the desktop, or are you using a shortcut to the batch file?

I'm stumped, I think I can get my hands on a Win98 machine this afternoon -- I'll try it there and see if there are any problems.

RE: MS DOS Batch file in Win95

I found the same problem as PCcoordinator but got round it in this way.  In the batch file the command is:-

format a: /v:volume_label /q < yn.txt

Then require a text file containing on separate lines :-


Just as above - I made sure I put a return after the N as well.  Can put the .TXT file anywhere and just put the full path to it in the batch command.  Hope this helps.

RE: MS DOS Batch file in Win95

Many thanks for all your help. The response from rauleigh finished the batch.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close