Peek requests
#1
A few items of system information that I think would be useful to yab programmers if they were added to the PEEK system. There are workarounds for these, mostly involving system calls like SYSTEM$("if [ -e filename ] )", and parsing the results, but having them in the system would speed things up.

var = PEEK "PackageStatus"
0 running from a non-packaged location
1 running from /boot/system
2 running from /boot/home/config

var = PEEK "FileExists" Filename$
0 File does not exist
1 File exists

var = PEEK "DirectoryExists" Pathname$
0 Directory does not exist
1 Directory exists
Reply


Messages In This Thread
Peek requests - by clasqm - 03-21-2016, 02:18 AM
RE: Peek requests - by bbjimmy - 03-23-2016, 09:42 AM
RE: Peek requests - by clasqm - 03-25-2016, 04:23 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)
Free Web Hosting