17.07.2013 Views

GWBASIC User's Manual

GWBASIC User's Manual

GWBASIC User's Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GW-BASIC <strong>User's</strong> Guide<br />

PATH=A:\; COMSPEC=A:\COMMAND.COM<br />

The path may be changed to a new value:<br />

ENVIRON "PATH=A:\SALES; A:\ACCOUNTING"<br />

The path parameter may be appended by using the ENVIRON$ function with the ENVIRON<br />

statement:<br />

ENVIRON "PATH="+ENVIRON$("PATH")+"; B:\SAMPLES"<br />

Finally, delete the parameter COMSPEC:<br />

ENVIRON "COMSPEC=;"<br />

The environment string table now contains<br />

PATH=A:\SALES; A:\ACCOUNTING; B:\SAMPLES<br />

file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/ENVIRON.html (2 of 2)28/03/2004 21.29.23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!