Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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:\
EXITAny help would be greatly appreciated.

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

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

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?

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

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |