Computing.Net > Forums > Disk Operating System > Auto Answer DOS Prompt

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.

Auto Answer DOS Prompt

Reply to Message Icon

Name: Barron879
Date: August 6, 2009 at 07:18:06 Pacific
OS: DOS
Product: Hp (hewlett-packard) Hpspack epack ndos 1yr dj750c/75cm post warr
Subcategory: Configurations
Tags: DOS, NTFS4DOS, Auto, Answer, batch
Comment:

I am making a bootable CD with some DOS based hardware diagnostics. Once the testing is done, I want to save the log to the main hard drive in the system, which will probably be NTFS. NTFS4DOS is the only DOS based program I've found that will give me read/write access to NTFS volumes from DOS.

I am trying to create a batch file that will auto answer the YES/NO prompt from the free version of NTFS4DOS and run a copy command inside the program to automatically copy the log. I am lost on how to do this.

Here's a copy of the batchfile I've attempted to make for it:

@ECHO ON
ntfs4dos.exe
ECHO YES > ntfs4dos.exe
COPY R:\PCDR.LOG C:\
EXIT


I've also tried:

@ECHO ON
ECHO YES > ntfs4dos.exe
COPY R:\PCDR.LOG C:\
EXIT
------------------------------------------
@ECHO ON
ntfs4dos.exe
ECHO YES | ntfs4dos.exe
COPY R:\PCDR.LOG C:\
EXIT

Any help would be greatly appreciated.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: August 6, 2009 at 20:17:18 Pacific
Reply:

If the pipe doesn't fly, you're probably out of luck. Some EXEs just won't take a piped response.

Try NTFS4DOS /? to see if there are any command line switches.


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 2
Name: tikbalang
Date: August 7, 2009 at 04:41:29 Pacific
Reply:

try this:

@ECHO ON
ECHO YES > yesfile.tmp
ECHO. > yesfile.tmp
LH ntfs4dos.exe < yesfile.tmp
COPY R:\PCDR.LOG C:\
EXIT


0

Response Number 3
Name: Barron879
Date: August 7, 2009 at 06:12:43 Pacific
Reply:

Everytime I try piping in general, I get a general write failure to drive A:\

Maybe it's because I am emulating a floppy drive from an IMA image?


0

Response Number 4
Name: tvc
Date: November 7, 2009 at 10:47:09 Pacific
Reply:

Maybe try writing the input file (yesfile.tmp) onto a different location, it can be any existing one ...

So, instead of :

yesfile.tmp

write:

C:\yesfile.tmp


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Auto Answer DOS Prompt

auto respond to prompt www.computing.net/answers/dos/auto-respond-to-prompt/13129.html

dos prompt www.computing.net/answers/dos/dos-prompt-/15663.html

DOS shell & DOS prompt www.computing.net/answers/dos/dos-shell-amp-dos-prompt/13369.html