Re: Change Directory

 BBS: Inland Empire Archive
Date: 03-15-93 (19:20)             Number: 367
From: DICK DENNISON                Refer#: NONE
  To: EARL MONTGOMERY               Recvd: NO  
Subj: Re: Change Directory           Conf: (2) Quik_Bas
EM> I am writing a little program for my own use and I need to know
EM> how to change directories using interrupts. I tried INT 21
EM> function 3B but I guess I don't know enough about interrupts as
EM> it always locks my computer up! <g>. Could someone please post
EM> code showing how to change directories using interrupts.

DIM Regs AS regtypex
NewDir$ = "D:\bbs" + CHR$(0) 'AsciiZ string
Regs.ds = VARSEG(NewDir$)    'Segment in DS
Regs.dx = SADD(NewDir$)      'Offset in DX = &H3B00             'Int 3bh
interruptx &H21, Regs, Regs  'Call dos

 'That should do it.

--- VP [DOS] V4.09e
 * Origin: The MailMan  (914)374-3903 NY Quick Share Pt #7 *HST (1:272/34)
Outer Court
Echo Basic Postings

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