> I am running a DOS program in Word by using
> shell("D:\calc<D:\xx.rrr",1), where xx.rrr is a input file required
> by the DOS program calc.exe. It worked under Windows 2000. It doesn't
> work under Windows XP Microsoft Word 2003.
You can't use redirection within a Shell statement without invoking a
secondary command processor.
Ex:
MyCmd = "d:\calc < d:\xx.rrr"
Call Shell(Environ("comspec") & " /c " & MyCmd, vbNormalFocus)

Signature
Working without a .NET?
http://classicvb.org/