Computing.Net > Forums > Windows 3.1 > How to del swap file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to del swap file

Reply to Message Icon

Name: William
Date: June 26, 2002 at 13:23:30 Pacific
Comment:

I've got a 486 running wfw 3.11 with 40 meg ram. I want to delete the swap file. I go to control panel and change virtual memory settings to "none" then exit into dos and run DEFRAG. It still shows about 20 meg of unmovable file space. How do you delete the swap file?



Sponsored Link
Ads by Google

Response Number 1
Name: Dan Penny
Date: June 26, 2002 at 14:49:00 Pacific
Reply:

At your C:\> prompt, type in;

DELTREE/Y C:\windows\WIN386.SWP


0

Response Number 2
Name: Jason Faulkner
Date: June 26, 2002 at 20:40:00 Pacific
Reply:

Another nifty trick is to use a command line switch on your DEFRAG program run the following (X is whatever drive you're defragging):

DEFRAG X: /f /h

This should allow it to move your swap file around -- and any other hidden files for that matter.

Jason


0

Response Number 3
Name: William
Date: June 26, 2002 at 22:28:50 Pacific
Reply:

Thanks, I'll give it a go.


0

Response Number 4
Name: William
Date: June 27, 2002 at 06:15:09 Pacific
Reply:

OK, I tried getting rid of win386.swp but defrag still shows alot of unmovable file space. I don't want to defrag it, I want to recover the disk space (although that is something good to know for future reference). Is their anything else I can do other then format and reinstall?


0

Response Number 5
Name: Dan Penny
Date: June 27, 2002 at 06:58:03 Pacific
Reply:

Certain files in your O/S cannot be moved. They have to be in a specific spot or area on the disk. Can you tell what is in the unmovable space? Norton Utilities 6.0 (16 bit for DOS) had some apps that you could click on the sector and it would give you the file name.

"I don't want to defrag it, I want to recover the disk space"

The only way to recover unmovable file space is by deletion of the files occupying that space, and if they are system files, your O/S won't work properly.


0

Related Posts

See More



Response Number 6
Name: William
Date: June 27, 2002 at 13:28:53 Pacific
Reply:

I don't think DOS needs 20 megs of operating files! My swap swap file in windows was about 20 megs in size. When I disabled the virtual memory in windows, the 20 meg block of unmovable files at the end of my hard drive stayed their. I'm assuming that was my swap file. I don't know of anything else that would make a continuous block of unmovable files that large. Are you sure their is no way of recovering that disk space without reformatting?


0

Response Number 7
Name: Jason Faulkner
Date: June 27, 2002 at 14:29:38 Pacific
Reply:

Do a dir/w/a:h from a DOS c:\ prompt. That'll show you all the hidden files. If you have any, do this: attrib filex.exe -r -a -s -h

That'll make it where it can be moved. Try the same in your windows and windows\system folders.


0

Response Number 8
Name: Hmmm
Date: June 27, 2002 at 16:43:19 Pacific
Reply:

Just boot to the dos prompt change the attributes and delete it.


0

Response Number 9
Name: William
Date: June 28, 2002 at 06:50:35 Pacific
Reply:

Is their any other name that the swap file may be called? I have looked in just about every directory for the file listed above (with and without using the file type attribute switches). I can't find win386.swp or any variation thereof. Any more suggestions? If not, it's time for "format c:"


0

Response Number 10
Name: William
Date: June 28, 2002 at 06:55:43 Pacific
Reply:

I just had a thought. If I had a permanent swap file then later changed it to a temp swap file would that cause what I'm seeing? I know when I installed WFW over win 3.1 it said I had another OS with a swap file and asked if I wanted to delete it? I didn't have virtual memory enabled then either.


0

Response Number 11
Name: Dan Penny
Date: June 28, 2002 at 11:36:08 Pacific
Reply:

386SPART.PAR is the WFW swap file, sorry, been a long time. If you use the deltree command you needn't bother with the attrib command as deltree over rides attributes.

DELTREE/Y C:\windows\386SPART.PAR

(It may be in the root of C:, can't remember that either, but that ~IS~ the filename.)


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 3.1 Forum Home


Sponsored links

Ads by Google


Results for: How to del swap file

how to open a big .dsk file??? www.computing.net/answers/windows-31/how-to-open-a-big-dsk-file/11069.html

how to install win3.11 on fat32 www.computing.net/answers/windows-31/how-to-install-win311-on-fat32/11081.html

Please help! I need to know how to renam www.computing.net/answers/windows-31/please-help-i-need-to-know-how-to-renam/4406.html