How can we get the workarea and other details such as username, session, etc for a cgi file, if we are running the file from a wrapper cgi and how in case if we are running the cgi from a menu item ?TS 6.1 SP2
Load the sample show_env.cgi and it will show you what choices you will have
It appears that the only info you will get is if you select a file before running show_env. Then you get the VPATH and can regex out the Workarea.
Isn't there a cwd.vpath form variable?
Only if you select a file when you run show_env. If no file is selected, then there is no information with the workarea (DOS, 6.7.1)