Announcement

Collapse
No announcement yet.

Setting enviroment variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Christian Bahn
    Guest replied
    I get in the next minutes, hours, days a programm that copies the child environment over the master environment.
    That is not the way that Iám looking for. Im looking for a way do change the master environment in a Basic Programm.

    Christian

    ------------------

    Leave a comment:


  • Amos Vryhof
    Guest replied
    Optionally, you could skip using the batch file (unless it's
    Autoexec.bat) and use PowerBASIC entirely.

    That is of course to be determined by you. I have seen
    utilities that modify the master copy of the environment and I
    used to have a book that mentioned how to do so in QBasic calles
    MS-DOS Batch Files Inside and Out. I have since lost the book.


    ------------------
    Amos
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Tom Hanlin
    replied
    It's possible but, you'll need to do some research. See the ENVIRON.FAQ file
    in your PB/DOS FAQ directory.


    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Leave a comment:


  • Christian Bahn
    Guest replied
    This works only for the child prozess. That means the changes are only for the time when the programm runs. after the programms end, the changes oder the new enviroment variables are deletet or unchanged.


    ------------------

    Leave a comment:


  • Mel Bishop
    replied
    Check out ENVIRON$ in the help file.
    I don't know if you can set the environment with this but you
    read it and write the results to a .TXT file.



    ------------------

    Leave a comment:


  • Christian Bahn
    Guest started a topic Setting enviroment variable

    Setting enviroment variable

    Hallo,

    is it posible in power basic to set a enviroment variable so that i can use the enviroment variable when the programm has finished.
    I need this for DOS.
    I wanne make a programm that writes information in a enviroment variable and a batch file checks the enviroment variable !

    Sorry about my English

    Thanks
    Christian

    ------------------
Working...
X