[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2011-12-16T17:54:20-05:00 http://www.petesqbsite.com/phpBB3/app.php/feed/topic/3530 2011-12-16T17:54:20-05:00 2011-12-16T17:54:20-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=21716#p21716 <![CDATA[looking for some help of qb/fb commands]]>
can do this:
1) via SET
2) via temp file
3) via registry entries

set seemed the simplist so far, but that is not panning out.

working on temp file as we speak

will dabble into regentries as well.

but my other team has come up with a novel solution to the SET command. will investigate that over the weekend and post when i know more.
What do you really want to do? I mean what is the point of setting an environmental value in the first place?
The information could easily be stored in a file for later use. Why mess with the environment of somebody else's computer when the computer may not even allow it?
The change would only be temporary and lost when the program ends.
Environmental information is stored by Windows to be READ when you need a certain path or setting. It is really not something to mess with.

Statistics: Posted by palahoot — Fri Dec 16, 2011 5:54 pm


]]>
2011-12-16T14:53:46-05:00 2011-12-16T14:53:46-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=21713#p21713 <![CDATA[looking for some help of qb/fb commands]]>
The information could easily be stored in a file for later use. Why mess with the environment of somebody else's computer when the computer may not even allow it?

The change would only be temporary and lost when the program ends.

Environmental information is stored by Windows to be READ when you need a certain path or setting. It is really not something to mess with.

Statistics: Posted by burger2227 — Fri Dec 16, 2011 2:53 pm


]]>
2011-12-16T14:45:31-05:00 2011-12-16T14:45:31-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=21712#p21712 <![CDATA[looking for some help of qb/fb commands]]>
ENVIRON values can only be set while the program is running if at all.

Windows will not retain the value after the program is closed.
so there is no other workaround to make this function as expected?

Statistics: Posted by palahoot — Fri Dec 16, 2011 2:45 pm


]]>
2011-12-16T13:00:28-05:00 2011-12-16T13:00:28-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=21711#p21711 <![CDATA[looking for some help of qb/fb commands]]>
Windows will not retain the value after the program is closed.

Statistics: Posted by burger2227 — Fri Dec 16, 2011 1:00 pm


]]>
2011-12-16T11:52:04-05:00 2011-12-16T11:52:04-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=21710#p21710 <![CDATA[looking for some help of qb/fb commands]]>
compile and run this:

#Include "crt/stdlib.bi"
SetEnviron "return=c:\" 'set return equal to c drive
print "return is currently set to "; Environ ("return") 'print the c:\
SetEnviron "return=" + CurDir 'set return equal to current directory path
print "the new return value is ";environ("return") 'print the current directory path
shell("set return=" + curdir)
Shell("setx path ""return;C:\windows""")
Print "setx has now set return to "; Environ("Return")
sleep

after running, check the envvar "return" and see what value it is set to. if you did not preset it, then the value you return after running the program will be nil. if the "return" is valid and set to a folder path, then it will not set it to root or windows upon exit, it will be what it was before you ran the command.

help anyone?

Statistics: Posted by palahoot — Fri Dec 16, 2011 11:52 am


]]>