X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: Re: FreeDOS, cannot open swap file cwsdpmi.swp Date: Wed, 26 Oct 2011 21:13:11 -0700 (PDT) Organization: http://groups.google.com Lines: 18 Message-ID: <870bf8bb-b48e-47cb-8ec0-3d5125d93df8@h24g2000yqm.googlegroups.com> References: NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1319688792 20357 127.0.0.1 (27 Oct 2011 04:13:12 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Thu, 27 Oct 2011 04:13:12 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: h24g2000yqm.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HNKUARELSC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1,gzip(gfe) Bytes: 2082 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p9R4U2qh022332 Reply-To: djgpp AT delorie DOT com Hi, On Oct 26, 7:25 pm, jimm wrote: > > I am making bootable floppies and a bootable cd-rom. > I want to completely eliminate the possibility of CWSDPMI using swap. > how do I compile/link/code/whatever my programs so that this is so? > I can't expect any hard disks to have a partition on it.  c: may be > actually an eltorito cdrom, so It may not necessarily be writable.  I > want to completely rely on RAM, there's plenty of it to go around! Since apparently you're using CWSDSTUB.EXE, you'll have to use CWSPARAM.EXE (or similar) to change the default path "c:\cwsdpmi.swp" to something invalid, e.g. "" (nothing), which (IIRC) by default will just put a '\0' in the drive byte of the path. Otherwise, you can disable at runtime, e.g. "lh cwsdpmi -p -s-" or similar.