🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16764

Re: CMD or !CMD

#16764
From: DeKayA
Date: Mon, 28 Apr 2003 12:53
49 lines
2437 bytes
I figured ther had to be a better way
Thanks for the time Gambit.
DeKayA
Your help is appreciated


On Sun, 27 Apr 2003 22:18:52 -0700, "Remy Lebeau \(TeamB\)"
<gambit47@yahoo.com> wrote:

>
><DeKayA@bellsouth.net> wrote in message
>news:3eacad34.22425665@forums.inprise.com...
>
>> I am using DOS (cmd) to accomplish a
>> environmental setting  is this the best way to
>> effect the system settings
>
>It would be best to not call SUBST at all, but instead create the drive
>substitution yourself.
>
>Under NT/2K/XP, you can use DefineDosDevice(), which does the same thing
>SUBST does:
>
>    DefineDosDevice()
>    http://msdn.microsoft.com/library/en-us/fileio/base/definedosdevice.asp
>
>Under Win9x/Me, DefineDosDevice() is not available, so you have to instead
>use DeviceIoControl() with the VMM32 device driver to indirectly call
>Interrupt 21h Function 71AAh:
>
>    DeviceIoControl
>    http://msdn.microsoft.com/library/en-us/devio/base/deviceiocontrol.asp
>
>    Calling DeviceIoControl on Windows Me/98/95
>
>http://msdn.microsoft.com/library/en-us/devio/base/calling_deviceiocontrol_on_windows_95_98_me.asp
>
>    Interrupt 21h Function 71AAh Minor Code 0h
>    http://msdn.microsoft.com/library/en-us/win9x/95func_8pk8.asp
>
>    Interrupt 21h Function 71AAh Minor Code 1h
>    http://msdn.microsoft.com/library/en-us/win9x/95func_8pm0.asp
>
>    Interrupt 21h Function 71AAh Minor Code 2h
>    http://msdn.microsoft.com/library/en-us/win9x/95func_8pns.asp
>
>
>Gambit
>
Technical Details
Message-ID: <3ead240a.6868534@forums.inprise.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3eacad34.22425665@forums.inprise.com> <3eacb96c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,700ffb83e50e0bab
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-28 06:00:37 PST
From: DeKayA@bellsouth.net
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: CMD or !CMD
Date: Mon, 28 Apr 2003 12:53:36 GMT
Message-ID: <3ead240a.6868534@forums.inprise.com>
References: <3eacad34.22425665@forums.inprise.com> <3eacb96c$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.5/32.452
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 209.214.10.26
X-Trace: newsgroups.borland.com 1051534388 209.214.10.26 (28 Apr 2003 05:53:08 -0700)
Lines: 50
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail