Tech Support > Operating Systems > Windows XP > non functional command when batch calls a batch
non functional command when batch calls a batch
Posted by jonefer on November 19th, 2003


I have a batch file "A.Bat" that opens a couple of RTF's
using Microsoft Word.

Because it requires a parameter, I need to call it using
the command prompt. This works fine.

It's a hasstle though to have to open a command prompt
each time and CD to the directory that "A.Bat" is in so I
wrote another batch file that calls "A.Bat" from the
correct location and conveniently opens up a parameter
window.

However... this line in A.Bat:

"C:\Program Files\Microsoft Office\Office\winword.exe"
wordfile_~1.rtf wordfile_~2.rtf wordfile_~3.rtf

doesn't work anymore. It just says: "Bad Command"
What gives?






Similar Posts