I think you have a number of alternative options available, including:
- install all .exe and .bat files into a general directory and include this directory in the path.
- as you are using .bat files, you could include the project directiory path in the .bat files.
- you could use an environment variable (see dos SET command) to define the project area for each run and use this in the .bat file
One of the problems I have found with the attach@ routine is that on exit from the control program, the default directory reverts to the original directory. I always had problems with that and I'm not sure if the changed directory will be kept when using cissue, start_process@ or start_pprocess@.
Defining a project directory environment variable, which is available in the .bat files may be a useful solution. Again, if you define this in the program by using
cissue ('SET Project_Directory=c:\user\project_3'), (or whatever is the correct syntax !!),
the extent of the availability of this variable definition in subsequent CISSUE calls may still be a problem.
So (in XP) you may need to define the project variable outside your program using Control Panel > System > Advanced > Environment Variables.
I think you need Administrator status to do this, which I typically do not have. I find this a very frustrating problem!
I tried the following program, but it does not work, (or my method of testing does not work), as I think I have the SET syntax wrong.
! Program is
integer*4 i
call cissue('set project_directory=c:\\group\\project_02',i)
write (*,*) 'i=',i
call cissue('set',i)
call cissue('ss.bat',i)
call cissue('set',i)
end
! ss.bat is
set project_directory=test_02
set
FTN95 also use a number of these variables.
Good luck
John