As already mentioned, you can't add a local setting globally. Your path is correctly added, then thrown away, when closing current shell.
If you really want to enhance your actual shell, then add your path to a specific shell-startup, name it what you like , run a new shell with 'from' keyword and your newly created shell-start as input.
e.g.
echo >ram:t/pathvar path Dummydrive: add
newshell from ram:t/pathvar
now your shell has got the new path (Dummydrive: here) as set by your script
Cheers
|