Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Can a batch file press enter?  (Read 5082 times)

0 Members and 1 Guest are viewing this topic.

Yetii

  • Guest
Can a batch file press enter?
« on: February 24, 2007, 11:39:29 AM »
I'm trying to put together a .bat for my grandma so she can do a one click c format, and slide a disc in to reinstall her os. I've never tried it before so I guess we will see if it works, but I'm stuck on getting the file to press enter once the command is given to
Format C: /u
I haven't been able to find any helpful info  :-/

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Can a batch file press enter?
« Reply #1 on: February 24, 2007, 11:56:29 AM »
DLoad the appropiate bootdisk from bootdisk.com and follow the instructions...

What OS is grandma fooling around with ? ?
" Anyone who goes to a psychiatrist should have his head examined. "

Yetii

  • Guest
Re: Can a batch file press enter?
« Reply #2 on: February 24, 2007, 12:08:04 PM »
OS is XP Home

I was just messing around with DOS and thought it would be a cool experiment, then I got stuck.
I was going to email the file to her, that's about the only thing she knows how to do with one  ;D

Yetii

  • Guest
Re: Can a batch file press enter?
« Reply #3 on: February 25, 2007, 08:42:40 AM »
So is there a way around it?

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Can a batch file press enter?
« Reply #4 on: February 25, 2007, 01:49:49 PM »
A way around what ? ? ?
" Anyone who goes to a psychiatrist should have his head examined. "

Yetii

  • Guest
Re: Can a batch file press enter?
« Reply #5 on: February 25, 2007, 02:08:43 PM »
lol

Having to press enter for the format to continue as a user, and instead having a command in the batch file do it for you.

rockerest



    Hopeful
    • Yes
  • Experience: Experienced
  • OS: Windows 7
Re: Can a batch file press enter?
« Reply #6 on: February 25, 2007, 02:53:59 PM »
I believe you may have to do a prompt followed by a series of if...else...then statements.

-rock
In general, the PEBKAC.  Whether it's now or was three weeks ago, the PEBKAC.
Unsafe browsing and general computer / internet illiteracy IS the users problem.  Don't have sex if you don't know how to use a condom.
Also, there are 10 types of people in the world, those who understand binary, and those who don't.

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Can a batch file press enter?
« Reply #7 on: February 25, 2007, 03:16:38 PM »
Quote
I believe you may have to do a prompt followed by a series of if...else...then statements.

-rock

How does this solve his problem ? ?
" Anyone who goes to a psychiatrist should have his head examined. "

fglass69

  • Guest
Re: Can a batch file press enter?
« Reply #8 on: February 26, 2007, 01:28:02 PM »
There is a tiny prog called CR.com which places a carriage return into the keyboard buffer. You'd call it in a batch file immediately before the prog waiting for input. You could modify CR to stack any key. Alas it stopped working with Win95.

but this works:

echo. | date

so format should work, too

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Can a batch file press enter?
« Reply #9 on: February 26, 2007, 02:58:39 PM »
He doesn't want to format....
" Anyone who goes to a psychiatrist should have his head examined. "