MSFN Forum: How do I stop "garbled" directory after exiting win3.11 ? - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How do I stop "garbled" directory after exiting win3.11 ? running fat32/7.11 , you need to dir another folder to fix it Rate Topic: -----

#1 User is offline   keropi666 

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 23-November 10
  • OS:none specified
  • Country: Country Flag

Posted 20 March 2012 - 02:35 PM

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)

Posted Image

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!!! :)


#2 User is offline   rloew 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 941
  • Joined: 30-May 05
  • OS:98SE
  • Country: Country Flag

Posted 21 March 2012 - 12:20 AM

View Postkeropi666, on 20 March 2012 - 02:35 PM, said:

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)

Posted Image

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!!! :)

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.

#3 User is offline   jumper 

  • 2013 All-American Masters HJ/TJ'er
  • PipPipPip
  • Group: Members
  • Posts: 362
  • Joined: 21-January 11
  • OS:98SE
  • Country: Country Flag

Posted 21 March 2012 - 01:19 AM

View Postkeropi666, on 20 March 2012 - 02:35 PM, said:

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.

#4 User is offline   keropi666 

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 23-November 10
  • OS:none specified
  • Country: Country Flag

Posted 21 March 2012 - 01:23 AM

[/quote]
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.
[/quote]

ah, thanks for the explanation rloew :)
I have looked at your site but did not see the wrapper you mention, is there a way to get it?


View Postjumper, on 21 March 2012 - 01:19 AM, said:

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?

This post has been edited by keropi666: 21 March 2012 - 01:25 AM


#5 User is offline   rloew 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 941
  • Joined: 30-May 05
  • OS:98SE
  • Country: Country Flag

Posted 21 March 2012 - 11:19 AM

View Postkeropi666, on 21 March 2012 - 01:23 AM, said:

Quote

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 :)
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.

#6 User is offline   keropi666 

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 23-November 10
  • OS:none specified
  • Country: Country Flag

Posted 21 March 2012 - 11:23 AM

allright then :thumbup

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

#7 User is offline   rloew 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 941
  • Joined: 30-May 05
  • OS:98SE
  • Country: Country Flag

Posted 21 March 2012 - 11:03 PM

View Postkeropi666, on 21 March 2012 - 11:23 AM, said:

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.

This post has been edited by rloew: 22 March 2012 - 11:30 AM


#8 User is offline   keropi666 

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 23-November 10
  • OS:none specified
  • Country: Country Flag

Posted 22 March 2012 - 01:33 AM

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:

Posted Image

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

once again, MEGA THANKS rloew !

#9 User is offline   rloew 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 941
  • Joined: 30-May 05
  • OS:98SE
  • Country: Country Flag

Posted 22 March 2012 - 11:34 AM

View Postkeropi666, on 22 March 2012 - 01:33 AM, said:

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:

Posted Image

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

once again, MEGA THANKS rloew !

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.

#10 User is offline   keropi666 

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 23-November 10
  • OS:none specified
  • Country: Country Flag

Posted 22 March 2012 - 11:44 AM

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy