Problem using Host command to call a batch file
4607Aug 19 2009 — edited Aug 19 2009Hi all,
I am trying to call a batch file with the Host command:
host c:\test\u.bat
where u.bat calls unix2dos.exe with a parameter of d_unix.txt.
Bat file looks like this:
C:\test\unix2dos.exe d_unix.txt
PAUSE
The bat file gets called fine, but the following error occurs (in the cmd prompt):
T:\globals\ORACLE8\bin>C:\test\unix2dos.exe d_unix.txt
d_unix.txt:
Can't open file
T:\globals\ORACLE8\bin>PAUSE
Press any key to continue . . .
Running the batch file directly in windows works fine. The batch file also runs fine from the Host command if I remove the d_unix.txt parameter.
The file d_unix.txt file is in the same directory as the batch file and as unix2dos.exe.
Running from Sql Plus in a windows environment.
Any thoughts?
Edited by: dgouin on Aug 19, 2009 11:41 AM
Edited by: dgouin on Aug 19, 2009 11:42 AM
Edited by: dgouin on Aug 19, 2009 11:42 AM