BBS: Inland Empire Archive Date: 03-16-92 (18:34) Number: 155 From: SCOTT WUNSCH Refer#: NONE To: DUANE BURRIS Recvd: NO Subj: Changing DOS Prompt Conf: (2) Quik_Bas
DB> Does anyone have a short solution to reading then changing the DB> Prompt preferably without shelling to dos.(but if thats the eas Sure! Use the ENVIRON$() function to read the prompt, then use the ENVIRON statement to write the changed one. The following is an example code fragment: CurPrompt$ = ENVIRON$("PROMPT") 'Save the current prompt ENVIRON "PROMPT=" + NewTxt$ + CurPrompt$ 'Add the new text . . . 'Do whatever ENVIRON "PROMPT=" + CurPrompt$ 'Restore the old prompt It's untested, but kinda simple not to work. -= Scott \\'unsch =- --- Maximus 2.00 * Origin: The Green Zone - Regina, Sask, Canada (1:140/23)
Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET