.BAT File Question

  1. #1
    jnadel is offline Full Member

    .BAT File Question

    Hello,
    I have a batch file which opens a certain file. I need the batch file to press enter. Can this be done? If so, how?

    Thanks,
    Jeff

    EDIT: to be more specific, it's a program to format the A: drive.
    Last edited by jnadel; 04-07-2005 at 04:43 AM.


  2. #2
    jnadel is offline Full Member
    I did some more research on it. I thought I might be able to do it if it CALLed a file, but I'd just need to know the command for an enter/return I guess.

  3. #3
    jephree is offline ¨*·.¸ «.·°·..·°·.» ¸.·*¨
    Not sure if I understand what you are asking ... but the command format a: will format A:

    This can also be done by right clicking A: under My Computer & choosing Format...

    Or are you asking something else?

  4. #4
    jephree is offline ¨*·.¸ «.·°·..·°·.» ¸.·*¨
    Perhaps this may help:

    http://www.computerhope.com/msdos.htm#02

    http://www.computerhope.com/batch.htm


    ___________________________________________
    Last edited by jephree; 04-07-2005 at 05:01 AM.

  5. #5
    jnadel is offline Full Member
    No...I know that. But, what I'm saying, is I'm creating a batch file to automate the process (even though it is short). Because, when you type format A:, it says to press Enter. So, what this will do is format A: and the enter by itself.

    Thanks.

+ Reply to Thread