home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
PROGNAME.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
2KB
|
48 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME PROGNAME.DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
$INCLUDE "DAS-NB02.INC"
COLOR 7,0
CLS
? "┌───────────────────────────────────────────────────────────────────────
? "│ fProgName$ () returns the full Drive:\Path\Progname.ext
? "│ fProgPath$ () returns only the Drive:\Path\
? "├─────────────────────────────────────────────────────────────────────────
? "│ In this day and age you can't really make it mandatory that your users
? "│ change drive and directory to insure that your program doesn't have to
? "│ look for it's data. If you need to know what the program name is or where
? "│ it's being run from DOS will provide you with the info.
? "│ I usually declare a set of PUBLIC variables then read in the path at the
? "│ top of the program and make-up whatever else I need to know from there.
? "└─────────────────────────────────────────────────────────────────────────
?
PUBLIC pProgPath$
PUBLIC pDataPath$
pProgPath$ = fProgPath$
pDataPath$ = pProgPath$ + "DATA\"
PRINT pProgPath$
PRINT pDataPath$
PRINT
PRINT "YOU ARE NOW RUNNING: "; fProgName$