keropi666

How do I stop "garbled" directory after exiting win3.11 ?

10 posts in this topic

Hiya!

I have successfully installed win3.11 on my p200mmx machine. This pc runs DOS from win98SE (windows deleted completely) and has a 8GB FAT32 single partitioned hdd. (been running my old DOS stuff this way for years)

With the help of W3XSTART.EXE I patched IO.SYS and 3.11 runs great. The only problem is that when you exit it the directory listing is like this and no program from c:\windows can run again unless you change directory and do a dir there (example go to root of C:\ and dir)

dh3hv4.jpg

The HDD does not get corrupted, no files are lost. You just need to DIR another location to fix this. The limitation is that if you do not dir another location then you cannot immediately run something from c:\windows (for example an automated windows exit and restart fails)

I don't use IFSHLP.SYS at all and even tried a specific win311 config that loads IFSHLP.SYS from their directory (as the newer dos one is not compatible) but it did nothing different...

I would appreciate any help/tips on this in case someone remembers such old stuff :yes:

Thanks in advance for any help!!! :)

0

Share this post


Link to post
Share on other sites
I would appreciate any help/tips on this in case someone remembers such old stuff :yes:

Thanks in advance for any help!!! smile.gif

 

Windows 3.11 corrupts the Current Directory Pointer in one or more of DOS 7's Drive Table Entries.

Although possible to workaround with Batch Files, it is complicated.

I wrote a Wrapper Program around WIN.COM that resets the Pointers.

0

Share this post


Link to post
Share on other sites
The only problem is that when you exit it the directory listing is like this and no program from c:\windows can run again unless you change directory and do a dir there (example go to root of C:\ and dir)

...You just need to DIR another location to fix this. The limitation is that if you do not dir another location then you cannot immediately run something from c:\windows (for example an automated windows exit and restart fails)

If win.com runs from autoexec.bat, try adding:


win.com
@cd\
@dir /b/w > nul
@cd\windows

or create a win.bat with the above code.

For automated windows exit and restart, perhaps you could put reboot.exe in the root directory and have windows run it from there.

0

Share this post


Link to post
Share on other sites

Windows 3.11 corrupts the Current Directory Pointer in one or more of DOS 7's Drive Table Entries.

Although possible to workaround with Batch Files, it is complicated.

I wrote a Wrapper Program around WIN.COM that resets the Pointers.

ah, thanks for the explanation rloew smile.gif

I have looked at your site but did not see the wrapper you mention, is there a way to get it?

If win.com runs from autoexec.bat, try adding:

win.com@cd\@dir /b/w > nul@cd\windows 
or create a win.bat with the above code.

For automated windows exit and restart, perhaps you could put reboot.exe in the root directory and have windows run it from there.

thanks for the info jumper, will come handy... but I don't understand the reboot.exe/root thingie, can you explain further what you mean by it?

0

Share this post


Link to post
Share on other sites

I have looked at your site but did not see the wrapper you mention, is there a way to get it?

The wrapper is experimental. I did not publish it. My website has less than 1% of the programs I have written.

0

Share this post


Link to post
Share on other sites

allright then :thumbup

so the only solution for now is the batch solution jumper suggested ?

0

Share this post


Link to post
Share on other sites

allright then :thumbup

so the only solution for now is the batch solution jumper suggested ?

A better solution would be to Patch SYSTEM\WIN386.EXE as follows:

Windows 3.1

0005EA26: 66 C7 46 49 FF FF -> 6A FF 8F 46 49 90

0005EC38: 66 C7 46 49 FF FF -> 6A FF 8F 46 49 90

Windows 3.11

00065A26: 66 C7 46 49 FF FF -> 6A FF 8F 46 49 90

00065C38: 66 C7 46 49 FF FF -> 6A FF 8F 46 49 90

EDIT: Patch was for Windows 3.1, added 3.11 Version.

0

Share this post


Link to post
Share on other sites

rloew , you just made my day! :yes:

this is just awesome and indeed a way better solution that .bat files :thumbup

I have tried it and it works fine, directories do not get corrupted after exit and all work fine in this aspect :thumbup , I will do some work in 3.11 and see how it goes :sneaky:

as a sidenote I could not find the 2 patterns above in the addresses you specify , I have found them in these 2 places instead:

287lwya.jpg

it works but I hope I did not destroy something :sneaky: LOL

once again, MEGA THANKS rloew !

0

Share this post


Link to post
Share on other sites

as a sidenote I could not find the 2 patterns above in the addresses you specify , I have found them in these 2 places instead:

I checked my Windows 3. It was 3.1 not 3.11.

This explains the different addresses. Both of your addresses are equally offset from mine, and they work, so there should be no problems.

I don't think there will be any problems unless you try to use it with DOS 6.

0

Share this post


Link to post
Share on other sites

thanks again rloew :thumbup , now we have 2 patches :thumbup

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.