I recently put in a batch file which runs from a code shell.
However initially it wouldnt run.
The bat file would run perfectly if that was cliked,but would not execute from code.
after much research it became apparent that it was looking up the wrong directory (default directory) e:\my docs etc.
It was only after i change the default directory to where the data for this .bat file was...d:\......,that it would work.
Strange I have other bat files in the prog without that problem,just this particular one,and YES I did cd etc and chdir,but it seemed to ignore them
It doesnt seem to have any consequences on the prog as yet.
Just wonder if af others have had this happen,and if their is an obvious quick fix.
However initially it wouldnt run.
The bat file would run perfectly if that was cliked,but would not execute from code.
after much research it became apparent that it was looking up the wrong directory (default directory) e:\my docs etc.
It was only after i change the default directory to where the data for this .bat file was...d:\......,that it would work.
Strange I have other bat files in the prog without that problem,just this particular one,and YES I did cd etc and chdir,but it seemed to ignore them
It doesnt seem to have any consequences on the prog as yet.
Just wonder if af others have had this happen,and if their is an obvious quick fix.