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: Thu, 27 Oct 2011 05:53:24 -0700 (PDT) Organization: http://groups.google.com Lines: 74 Message-ID: References: <870bf8bb-b48e-47cb-8ec0-3d5125d93df8 AT h24g2000yqm DOT googlegroups DOT com> <614778bd-5b4e-4b9a-9e4d-cf18c4505c4e AT 31g2000prp DOT googlegroups DOT com> NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1319726361 18059 127.0.0.1 (27 Oct 2011 14:39:21 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Thu, 27 Oct 2011 14:39:21 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: y36g2000yqm.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: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1,gzip(gfe) Bytes: 3557 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 p9REj15a003441 Reply-To: djgpp AT delorie DOT com Hi again, On Oct 27, 2:24 am, jimm wrote: > On Oct 26, 9:13 pm, Rugxulo wrote: > > > On Oct 26, 7:25 pm, jimm wrote: > > > > I want to completely eliminate the possibility of CWSDPMI using swap. > > > 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. > > how *exactly* do I do that with cwsparam?  do I use this instead of > cwsdstum or in addition to, or what's going on here?  help me out. > the manual doesn't work. ================ F:\>copy /b cwsdstub.exe *.bak cwsdstub.exe => cwsdstub.bak F:\>cwsparam cwsdstub.exe Full name of paging file ("" to disable) ? [c:\cwsdpmi.swp] "" Number of page tables to initially allocate (0=auto) ? [0] Minimum application memory desired before 640K paging ? [512Kb] Paragraphs of DOS memory to reserve when 640K paging ? [3840] Paragraphs of memory for extra CWSDPMI internal heap ? [256] Maximum size of swap file ? [128Mb] Value of run option flags ? [0] F:\>cwsparam -v cwsdstub.exe -value- -field description- *Disabled* Full name of paging file ("" to disable) 0 Number of page tables to initially allocate (0=auto) 512Kb Minimum application memory desired before 640K paging 3840 Paragraphs of DOS memory to reserve when 640K paging 256 Paragraphs of memory for extra CWSDPMI internal heap 128Mb Maximum size of swap file 0 Value of run option flags F:\>fc cwsdstub.bak cwsdstub.exe Comparing F:\cwsdstub.bak and F:\CWSDSTUB.EXE 0000538E: 63 c 00 F:\>scrndump jim.txt ================ Basically I just typed verbatim "" (two double quotes) for null path. Then I just kept hitting enter for default values in []. As you can see, all it does it patch one byte to make it invalid.