> I have this line in my code that spits out (run time error 53, file
not found).
Running this program (project.exe) works fine if I do it through the
command prompt or Run dialogue box on the Windows XP start menu, but
not when using the shell command
This is my code
dim retval
retval = Shell("d:\batch_files\task_management\project\proj ect.exe",1)
Does the project.exe program (seems strange that you have an EXE file in
a directory whose name kind of indicates it contains only BAT files)
itself attempt to open or run any files or programs? If so, perhaps it
is using a relative path when attempting to do so. If that is the case,
you should be able to use ChDrive and ChDir to set the working path to
that which this (these) internally called file(s) require(s). You would
execute these function calls prior to executing the Shell statement.
Rick - MVP