MSFN Forum: AutoSYSTEMini v0.56 beta (english, italian & french only) - MSFN Forum

Jump to content



  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

AutoSYSTEMini v0.56 beta (english, italian & french only) Please tell me what your sLANGUAGE= setting in WIN.INI is Rate Topic: -----

#1 User is offline   soporific 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 705
  • Joined: 12-June 05

Posted 04 March 2007 - 07:30 PM


Introducing AutoSYSTEMini... version 0.56 beta



Change log:

v0.56 - 15th March, 2007
- improved RAM value code AGAIN -- i will get it right one day ... :)
- added a proper method to detect your language
- improved the localization.

v0.55 - 15th March, 2007
- improved RAM value code
- removed invalid setting from information file (thanks MDGx)

v0.54 - 13th March, 2007
- added localization support
- changed RAM value code - no more adding 1 to get the correct value - should be right now.

v0.52
- 10th March, 2007
- added program installer and icon

v0.51
- 10th March, 2007
- added FREEMEM.exe - much better tool for finding the RAM size
- added support for French localised editions of Windows.

v0.50 - 5th March, 2007
- initial release

What the frack is it? An automatic and help-guided SYSTEM.INI tweaks installer

What does it do? It is a DOS utility that helps you make the correct choices for tweaking your SYSTEM.INI file on your Windows 98se machine, and does all the work for you. It could even work on Windows 95 & Windows ME but i'm yet to test it on those OSes. And, sorry any non-english speaking peoples using localised versions of Win98se, it aint gonna work for you guys yet -- i'll see if I can't make it universal. EDIT: this now works for English, French & Italian.

Why would anyone go to the trouble? The reason i'm doing this is because the core of this program will appear in the next preview release of Auto-Patcher and i wanted to develop it a bit before release.

Is it safe to use? Yes. It saves your original SYSTEM.INI as a permanent backup and also provides an undo file for your last tweaking session. You can set values On and Off and also completely (and safely) remove the settings. In fact, its probably over-kill the amount of features this little utility has.

Installation instructions? Unzip to any directory (spaces and more than 8 letters are fine) and start the file in the root directory (START_ME.BAT)

What settings can you adjust: - 32BitDiskAccess, ConservativeSwapfileUsage, DMABufferSize, KeyBoostTime, MinTimeSlice, RemovableIDE, Chunksize, MinFileCache, abd MaxFileCache. Other settings are on the drawing board.

What features does it have?
* automatic selection of best settings for your computer based upon installed RAM.
* extensive undo options
* you can set settings quickly and all at once, and also you can set each individual settings manually as well
* User-friendly -- you don't need to know anything about computers to use this program - everything is explained.
* Total program size is 270k. Doesn't install any registry settings, just unzip and use.

Feedback needed - i want to include this program in the next release of Auto-Patcher

language strings ... beware, there's lots! And i'm sorry if i got it wrong ...

 
:ENGLISH
SET TexVe=Verify this program correctly identifies how much RAM you have
SET TexAf=MB installed on your computer
SET TexMa=set manually
SET Tex01=version
SET Tex02=Welcome to Soporific's SYSTEM.INI Tweaks Installer
SET Tex03=This will tweak your SYSTEM.INI to take advantage of your modern hardware
SET Tex04=The installer will record your current settings
SET Tex05=and save them to an undo file that you can use
SET Tex06=to restore your original settings if you need
SET Tex07=The settings you can adjust are
SET Tex08=Press any key to continue
SET Tex08a=or
SET Tex08b=to quit
SET Tex09=Now making your original undo file
SET Tex10=Now loading your computer's current settings
SET Tex11=Now loading saved settings
SET Tex12=Choose a number to change each setting
SET Tex13=Automatically load the best settings using your computer's RAM value
SET Tex14=current computer
SET Tex15=defaults for Windows 98
SET Tex16=high
SET Tex17=extreme
SET Tex17a=performance
SET Tex18=last
SET Tex18a=undo file
SET Tex18b=reboot
SET Tex19=original
SET Tex20=save Settings
SET Tex20a=make
SET Tex20b=install tweaks
SET Tex21=display Information on all the settings
SET Tex22=Quit the program
SET Tex23=Environment space used
SET Tex24=It seems you haven't yet verified
SET Tex25=this program correctly identifies
SET Tex26=the amount of RAM installed
SET Tex27=on your system
SET Tex28=Press any key to do this now
SET Tex29=Now checking to see how much RAM you have
SET Tex30=This program thinks you have
SET Tex31=of RAM available to Windows
SET Tex32=You can confirm this now by going to
SET Tex33=Start - Settings - Control Panel - System
SET Tex34=
SET Tex35=If this is not correct you can manually
SET Tex36=enter in the correct amount so that the
SET Tex37=rest of the program will produce settings
SET Tex38=appropriate to your computer
SET Tex39=Is this amount correct
SET Tex40=Oh well, that's why there's an option to manually set your RAM size
SET Tex41=Please enter your RAM size in megabytes
SET Tex42=You cannot enter nothing for this setting. Please enter something
SET Tex43=Your selected RAM size of
SET Tex44=has been recorded and will be used in all
SET Tex45=calculations that use the size of your installed RAM.
SET Tex46=If you make a mistake, just run this option again.
SET Tex47=This will install your original undo file
SET Tex48=You are about to make changes to your SYSTEM.INI file
SET Tex49=Are you sure you wish to continue
SET Tex50=Your original undo file has been installed
SET Tex51a=This will install
SET Tex51=your current
SET Tex52a=undo file
SET Tex52=Now making your original
SET Tex53a=Now loading
SET Tex53=your computer's current settings
SET Tex54=saved settings
SET Tex55=Choose a number to change each setting
SET Tex56=has been installed
SET Tex57=the information file for SYSTEM.INI settings
SET Tex58=settings from this computer
SET Tex59=Are you sure
SET Tex60=Please Note
SET Tex61=This will now install your selected tweaks
SET Tex62=If your system refuses to load on reboot
SET Tex63=restart in SAFE MODE and run the undo file
SET Tex64=If you aren't sure if you know you can boot into SAFE MODE
SET Tex65=Check this first!!! As long as you can boot into safe mode, there
SET Tex66=is no settings you can make that will stop the computer starting up
SET Tex67=Continue installing tweaks
SET Tex68=to continue
SET Tex69=to go back
SET Tex70=Settings have been saved
SET Tex71=The undo file has been created
SET Tex72=The INF file has been created
SET Tex73=Now installing tweaks
SET Tex74=tweaks have been installed
SET Tex75=Setting Name
SET Tex76=Valid values
SET Tex77=recommended
SET Tex78=Information
:: ie Press:  0 for OFF
SET Tex79=Press
SET Tex80=for
SET Tex81=Recommended settings
SET Tex82=to Delete this setting entirely
SET Tex83=to go back
SET Tex84=default is
SET Tex85=off
SET Tex86=to automatically configure this setting based upon your RAM
SET Tex86a=to automatically choose the best setting
SET Tex87a=You have
SET Tex87=less than
SET Tex88=of RAM installed
SET Tex89=This means it is recommended that we set
:: SET Tex90=
SET Tex91=or more
SET Tex92=Enter nothing
SET Tex93=Please enter the new
SET Tex94=buffer size
SET Tex95=This value is invalid
SET Tex96=Please enter a value between
SET Tex97=and
SET Tex98=value
SET Tex99=default
SET TexRe=Reboot now
SET Tey00=to Input the figure manually
SET Tey01=As your computer's RAM is
SET Tey02=setting is 
SET Tey03=Best to set to
SET Tey04=Using a guide of
SET Tey05=This enables 32 bit access to your hard disk
SET Tey06=You computer will run at reduced performance with this off
SET Tey07=Disabling is useful for troubleshooting
SET Tey08=This forces the system to use as much of the computer's
SET Tey09=physical memory as possible, before using your hard disk
SET Tey10=Recommended for computers with 256mb of RAM or over
SET Tey11=Affects communications with peripherials including
SET Tey12=sound card FM/wavetable, MIDI playback-recording
SET Tey13=and disk read-writes
SET Tey14=Specifies the time in seconds an application runs with
SET Tey15=increased priority when it receives a keystroke. Makes the 
SET Tey16=keyboard more responsive when running multiple applications.
SET Tey17=Sets the minimum time period that each process has
SET Tey18=access to the CPU. Lower values improve multi-tasking
SET Tey19=but decrease overall performance, & visa versa.
SET Tey20=To turn on support for removable
SET Tey20a=drives
:: like as in "turn on support for removable drives like Iomega, Syquest, etc"
SET Tey21=like
SET Tey22=depends on RAM
SET Tey23=Specifies size of each block of memory buffer in bytes
SET Tey24=Use larger chunks if you have lots of RAM
SET Tey24a=but too big will work against efficiency
SET Tey25=It's a good idea to use values that are multiples of
:: min as in minimum
SET Tey26=min
:: max as in maximum
SET Tey27=max
SET Tey28=Vcache is the Windows disk-caching virtual device driver
SET Tey29=Provides excellent disk performance, so don't use others.
SET Tey30=eg SmartDrv, etc... unless directed to by MDGx of course
SET Tey31=Excellent
SET Tey32=load settings
SET Tey33=install
SET Tey34=of
SET Tey35=It seems you haven't yet made an undo file
SET Tey36=language
SET Tey37=detected
 

Attached File(s)


This post has been edited by soporific: 16 March 2007 - 11:45 AM



#2 User is offline   MDGx 

  • 98SE2ME + 98MP10
  • Group: Super Moderator
  • Posts: 2,677
  • Joined: 22-November 04
  • OS:none specified
  • Country: Country Flag

Posted 06 March 2007 - 05:50 AM

Pretty cool tool. :thumbup

Keep up the good work...

#3 User is offline   glocK_94 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 403
  • Joined: 13-July 06
  • OS:98SE
  • Country: Country Flag

Posted 06 March 2007 - 12:58 PM

Just tested it. Since I didn't have much time to provide feedback about Autopatcher recently, I thought I'd do that one!
Seems nice. The readme about all the functions is really useful. Guess it took you time to compile all that stuff!

Anyway, I've encoutered several problems. It detected only 1mb of RAM... So I told the prog I have 1gb.
I choosed the High performance preset and it wrote the values correctly. Then I tried to tweak some settings and it worked fine.
However, it failed to save and install. It displayed several "error creating file" or something like that and ended with an error. :}

Don't worry, this app is on the right way! Keep up your work!
Ask if you want more info / reproduction of the error.

#4 User is offline   soporific 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 705
  • Joined: 12-June 05

Posted 06 March 2007 - 10:28 PM

View PostglocK_94, on Mar 7 2007, 05:58 AM, said:

Just tested it. Since I didn't have much time to provide feedback about Autopatcher recently, I thought I'd do that one!
Seems nice. The readme about all the functions is really useful. Guess it took you time to compile all that stuff!

Anyway, I've encoutered several problems. It detected only 1mb of RAM... So I told the prog I have 1gb.
I choosed the High performance preset and it wrote the values correctly. Then I tried to tweak some settings and it worked fine.
However, it failed to save and install. It displayed several "error creating file" or something like that and ended with an error. :}

Don't worry, this app is on the right way! Keep up your work!
Ask if you want more info / reproduction of the error.


Can you send me a screenshot of the DOS window when you type
 MEM /A/C
at the command line? The code is trying to determine the RAM from this info and because its probably different for you (localised version?), i'll need it so i can get it to work for you... I only need it from "Memory Summary:" onwards so don't worry about pausing the screen and sending more than one shot.

I should be able to find the other bug from what you already said (but if you want to send me a screenshot of that be my guest.)

Thanks for the feedback.

#5 User is offline   glocK_94 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 403
  • Joined: 13-July 06
  • OS:98SE
  • Country: Country Flag

Posted 07 March 2007 - 08:41 AM

Ok, here's mem in action. Never liked that thing. There's a freemem with freedos I think if you're interested. Anyway :
Posted Image

And here's the error:
Posted Image
Posted Image

#6 User is offline   soporific 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 705
  • Joined: 12-June 05

Posted 07 March 2007 - 10:12 AM

View PostglocK_94, on Mar 8 2007, 01:41 AM, said:

Ok, here's mem in action. Never liked that thing. There's a freemem with freedos I think if you're interested. Anyway :
Posted Image

And here's the error:


I'll check out freemem, thanks for the tip.

And yep, localisations aren't supported in AutoSYSTEMini as such but maybe it won't be too hard -- i'll look into other methods that don't cause these errors.

EDIT:: i've had a quick look at the code --- i'm not sure why its stuffing up. The only thing i can think of is that the directory doesn't exist that the code is trying to write to. It was supposed to be already created as a folder in the package you downloaded. I do admit to not adding error-checking for the folder to make sure it was there (which i will now add) so lets at least rule that out ... i'll release 0.51 in a day or so for you to test.

I'll be adding my first ever language option in any program i've ever done if we can get this right for you...

This post has been edited by soporific: 07 March 2007 - 10:36 AM


#7 User is offline   glocK_94 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 403
  • Joined: 13-July 06
  • OS:98SE
  • Country: Country Flag

Posted 07 March 2007 - 10:45 AM

Ok deal. I'll translate the strings once it works then! :P

#8 User is offline   MDGx 

  • 98SE2ME + 98MP10
  • Group: Super Moderator
  • Posts: 2,677
  • Joined: 22-November 04
  • OS:none specified
  • Country: Country Flag

Posted 09 March 2007 - 11:28 AM

Free MEM.EXE from FreeDOS is here, in case you're interested:

* MEM.EXE v1.11 16-bit DOS mode memory viewer improved Microsoft MEM.EXE
replacement for MS-DOS 5/6/7/8 + Windows 3.1x/9x/ME [also part of FreeDOS:
http://www.freedos.org/], highly customizable:
http://freedos.sourceforge.net/mem/
Direct download [88 KB, free GPL]:
http://freedos.sourc.../mem/mem111.zip

HTH

#9 User is offline   soporific 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 705
  • Joined: 12-June 05

Posted 10 March 2007 - 02:22 AM

Change log:

v0.52 - 10th March, 2007
- added program installer and icon

v0.51 - 10th March, 2007
- added FREEMEM.exe - much better tool for finding the RAM size
- added support for French localised editions of Windows.

Thanks to glock_94 and MDGx for the FREEMEM tip. Its now used to find the RAM.

This post has been edited by soporific: 10 March 2007 - 02:23 AM


#10 User is offline   Drugwash 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 869
  • Joined: 21-June 06
  • OS:98SE
  • Country: Country Flag

Posted 10 March 2007 - 10:48 AM

I tried hard to disconnect with my problems for a little while, so I grabbed this app and analyzed it a bit. Here's some considerations:

In SYS_inst.bat: why don't you create a menu for the user to choose his system language manually from a list of choices, and then just direct the code to validate ONLY that choice, returning to system language menu on error. I consider this to be easier than checking each possible language one after another, waiting for a match. I'd create this chunk of code myself for you, if my mind would be clear enough.

Just an idea: instead of "This value is invalid. [...]" when bad value was input, why not present the user with a message like: "Value out of range. Would you like to use (D)efault, (C)urrent or (O)ptimal value instead, or (R)eturn to manual value input?". It might be a good alternative, if the user is unsure as to which value to set.

What I feel would be very helpful, is always having the current value displayed on screen, for each of the possible items, when one is selected. E.g.:
Setting name: 32BitDiskAccess
Current value: OFF
Valid values: ON, OFF (recommended: ON)
......

Please note that I wrote all this just by looking at the batch code; I haven't run it yet. So I may be wrong at some point.
[EDIT] Now I have run it, without making any changes, though, just to see how the menu looks.

Grrrr... it found 1mb (why not MB ?) of available RAM, when I do have 240MB. And my system is English. I manually input the correct amount, which was saved. On a second run of the program, I ran the check again, and again it told me I have 1mb. Why wouldn't it take into account the value saved during the previous run and when discrepancy found, just say: "Current check indicates you have X amount of RAM, however on a previous check you manually input a value of Y MB RAM. Which value is correct? (O)ld/(D)etected/(N)one". On O, old value would be used; on D, the newly detected value will. On N, user will be prompted to manually enter the correct value.

mem /a /c shows a bogus 67,698.688 Bytes of total RAM, 250,949,280 Bytes of which (ha!!!) free, while FREEMEM.EXE does show the correct amount of 245,696 kB.

This post has been edited by Drugwash: 10 March 2007 - 12:38 PM


#11 User is offline   Max_04 

  • Unofficial Service Packs Italian Releaser
  • PipPip
  • Group: Members
  • Posts: 266
  • Joined: 14-June 06

Posted 11 March 2007 - 07:06 AM

Italian localizations of strings:

:LANG_ITA
:: the text of ALL variables in this label can be changed to the language of origin.
SET MEMmsg=Memoria totale  
SET AutoLoad=Automaticamente le migliori impostazioni utilizzano il valore della RAM
"%LOCATE%\bin\FREEMEM" | Find /i "%memmsg% " >nul
IF ERRORLEVEL 1 goto LANG_ENG
goto GOSTART


#12 User is offline   RainyShadow 

  • Member
  • PipPip
  • Group: Members
  • Posts: 211
  • Joined: 30-December 05

Posted 11 March 2007 - 10:04 AM

Nice idea, but unfortunately your program doesn't work at all for me.
I'm using 4DOS as a command interpreter.
When i run AutoSYSTEMini.exe it installs fine, then i get to the introduction screen and the last lines are:
 
Now making your original undo file...
T" 1.5 


After a couple keypresses i get:
 
T" .5

  Now loading your computer's current settings...
T" 1.5 


then some error messages scroll too fast that i can't read them, and finally i reach the menu.
I press "V" to check if it detects my RAM and i get:
 
Now checking to see how much RAM you have...
T" 1.5 

After i press a key, the output is:
 
Syntax Fehler
NSET 2.1 © 1997 Horst Schaeffer - s. DOK Datei
ASET: Warning: syntax error!
ASET: Warning: syntax error!
ASET: Warning: syntax error!
ASET: Warning: syntax error!
ASET: Warning: syntax error!
C:\PROGRA~1\AUTOSYS\code\SYS_Inst.bat [1055]  Unknown command "1"
ASET: Warning: syntax error!
ASET: Warning: syntax error!
ASET: Warning: syntax error!
ASET: Warning: syntax error!
Deleting C:\@@_tmp.txt
     1 file deleted

  This program thinks you have mb of RAM available to Windows.

  You can confirm this now by going to your Control Panel then 'System'

  If this is not correct, you can manually enter in the correct amount
   so that the rest of the program will produce settings appropriate to
   your computer.

  Is this amount correct?   [Y/N] 

Then i press "N" and it starts an endless loop of this:
 
INPUT ver 1.2  © 2000, Horst Schaeffer
Syntax: INPUT [line,column] [prompt] varname [options]
Options:
 /E  edit current variable
 /S  edit: cursor at end, clear if 1st key is ASCII
 /Ln limit input length=n
 /U  uppercase, /I insert, /P password, /N numeric only, /F flush buffer


 You cannot enter nothing for this setting. Please enter something! 


I've also tried to run Start_Me.bat from the original M$ command.com prompt, but it just closes the DOS window.

The previous version has similar issues.

HTH

#13 User is offline   glocK_94 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 403
  • Joined: 13-July 06
  • OS:98SE
  • Country: Country Flag

Posted 11 March 2007 - 11:25 AM

Ok. Just tested the new version deeply. And...everything runs perfectly!
It detected the right amount of RAM, installed everything fine and used the backup to restore the original file.
So what can I say... your program rulez !!! :thumbup:

#14 User is offline   Max_04 

  • Unofficial Service Packs Italian Releaser
  • PipPip
  • Group: Members
  • Posts: 266
  • Joined: 14-June 06

Posted 11 March 2007 - 03:09 PM

A curious thing, the program detects 257 MB of RAM, system properties of Revolutions Pack Lite 256 MB of RAM.
Why?

#15 User is offline   soporific 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 705
  • Joined: 12-June 05

Posted 12 March 2007 - 01:36 AM

View PostRainyShadow, on Mar 12 2007, 03:04 AM, said:

Nice idea, but unfortunately your program doesn't work at all for me.
I'm using 4DOS as a command interpreter.


It's about time i made my DOS programs 4DOS compatible. Is there some information i can see that will see where i can work around incompatibilities? Can you send me anything? you can get my email via my profile...

View PostMax_04, on Mar 12 2007, 08:09 AM, said:

A curious thing, the program detects 257 MB of RAM, system properties of Revolutions Pack Lite 256 MB of RAM.
Why?


Ah ha!! i'm busted ... here's the relevant bit of code...

:GET_RAM
:: this function tries to calculate how much RAM you have installed
:: returns with %NEXT1%

:: first see if there is a manual RAM size file
IF EXIST "%LOCATE%\files\your_RAM.txt" goto MAN_RAM
SET MyFile=C:\@@_tmp.txt

"%LOCATE%\bin\FREEMEM" | Find /i "%memmsg% " > "%MyFile%"
"%LOCATE%\bin\NSET" /P40 TempVar=$0 < "%MyFile%"
"%LOCATE%\bin\ASET" TempVar := SUBALL('K','','%TempVar%')
"%LOCATE%\bin\ASET" TempVar := SUBALL(',','','%TempVar%')
"%LOCATE%\bin\ASET" MyRAM := %TempVar%/1024
"%LOCATE%\bin\ASET" MyRAM := ROUND(%MyRAM%)

:: we have to add 1 to the number, why i don't know.
"%LOCATE%\bin\ASET" MyRAM := %MyRAM%+1
"%LOCATE%\bin\ASET" MinVal := %MyRAM%*128
"%LOCATE%\bin\ASET" MaxVal := %MyRAM%*256
:: goto CHUNK_1


Where am i going wrong? why can't i use the value from FREEMEM normally? I would love to be able to get the right answer without having to add 1...
is it rounding down weirdly or something?

EDIT:: no, i think i can see the problem ... i'm using the wrong value ... back soon

This post has been edited by soporific: 12 March 2007 - 01:42 AM


#16 User is offline   soporific 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 705
  • Joined: 12-June 05

Posted 12 March 2007 - 08:57 AM

v0.54 - 13th March, 2007
- added localization support
- changed RAM value code - no more adding 1 to get the correct value - should be right now.

#17 User is offline   Drugwash 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 869
  • Joined: 21-June 06
  • OS:98SE
  • Country: Country Flag

Posted 12 March 2007 - 11:25 AM

Nothing changed, except for the amount of detected memory, which is now 0mb instead of the previous 1mb. :(
Oh and minor tweaks to the displayed options.

#18 User is offline   Max_04 

  • Unofficial Service Packs Italian Releaser
  • PipPip
  • Group: Members
  • Posts: 266
  • Joined: 14-June 06

Posted 12 March 2007 - 01:29 PM

@ soporific:

In system.bmp aren't localized following strings:

1) Load settings
2) Install
3) of (near 8192)

Please add localization also for these strings.

http://www.divshare....load/219577-1a7

In system2.bmp there is an error during checking ram.

ASET: Warning: syntax error!

http://www.divshare....load/219578-cc0

In each case, this is italian localization that I've done:

:ITALIAN
SET TexVe=Verifica che il programma identifichi correttamente quanta RAM hai
SET TexAf=MB installati sul computer
SET TexMa=imposta manualmente
SET Tex01=versione
SET Tex02=Benvenuto all'installatore dei trucchi del SYSTEM.INI by Soporific
SET Tex03=Ottimizzera' il file SYSTEM.INI a vantaggio del tuo hardware moderno
SET Tex04=L'installatore registrera' le tue impostazioni correnti
SET Tex05=e le salvera' in un file undo che puoi usare
SET Tex06=per recuperare le impostazioni originarie se occorre
SET Tex07=Le impostazioni che puoi cambiare sono
SET Tex08=Premi un tasto per continuare
SET Tex08a=o
SET Tex08b=per uscire
SET Tex09=Sto creando il tuo file undo originale
SET Tex10=Sto caricando le impostazioni correnti del tuo computer
SET Tex11=Sto caricando le impostazioni salvate
SET Tex12=Scegli un numero per cambiare ogni impostazione
SET Tex13=Automaticamente carica le migliori impostazioni usando il valore RAM
SET Tex14=computer corrente
SET Tex15=impostazioni di default per Win98
SET Tex16=alte
SET Tex17=estreme
SET Tex17a=prestazioni
SET Tex18=ultimo
SET Tex18a=file undo
SET Tex18b=riavvia
SET Tex19=originale
SET Tex20=salva impostazioni
SET Tex20a=crea
SET Tex20b=installa trucchi
SET Tex21=visualizza informazioni su tutte le impostazioni
SET Tex22=Esci dal programma
SET Tex23=Spazio usato
SET Tex24=Sembra che tu non abbia ancora visto che
SET Tex25=questo programma identifica correttamente
SET Tex26=il valore di RAM installato
SET Tex27=sul tuo sistema
SET Tex28=Premi un tasto per fare questo adesso
SET Tex29=Sto controllando per vedere quanta RAM hai
SET Tex30=Questo programma pensa che hai
SET Tex31=di RAM disponibile su Windows
SET Tex32=Puoi confermarlo andando su
SET Tex33=Start - Programmi - Pannello di controllo - Sistema
SET Tex34=
SET Tex35=Se questo non e' corretto puoi inserire
SET Tex36=manualmente il valore corretto in modo che
SET Tex37=il programma avra' le impostazioni
SET Tex38=appropriate per il tuo computer
SET Tex39=E' questo il valore corretto
SET Tex40=Per questo esiste un'opzione per settare manualmente le dimensioni della RAM
SET Tex41=Inserisci la tua RAM in megabyte
SET Tex42=Non puoi inserire niente per questa impostazione. Inserisci qualcosa
SET Tex43=Le tue dimensioni RAM di
SET Tex44=sono state registrate e saranno usate in tutti i
SET Tex45=calcoli che usano le dimensioni della RAM.
SET Tex46=Se commetti uno sbaglio, fai partire di nuovo questa opzione.
SET Tex47=Questo installera' il tuo file undo originale
SET Tex48=Stai per fare cambiamenti al tuo file SYSTEM.INI
SET Tex49=Sicuro di voler continuare
SET Tex50=Il tuo file undo originale e' stato installato
SET Tex51a=Questo installera'
SET Tex51=il tuo file
SET Tex52a=undo corrente
SET Tex52=Sto creando il tuo file originale
SET Tex53a=Sto caricando
SET Tex53=le impostazioni correnti del computer
SET Tex54=impostazioni salvate
SET Tex55=Scegli un numero per cambiare ogni impostazione
SET Tex56=e' stato installato
SET Tex57=il file di informazione per le impostazioni di SYSTEM.INI
SET Tex58=impostazioni da questo computer
SET Tex59=Sei sicuro
SET Tex60=Per favore nota
SET Tex61=Questo installera' i trucchi selezionati
SET Tex62=Se il sistema rifiuta di caricarsi al riavvio
SET Tex63=riavvia in MODALITA' PROVVISORIA ed esegui il file undo
SET Tex64=Se non sai che puoi riavviare in MODALITA' PROVVISORIA
SET Tex65=controlla prima!!! Oltre questo, non ci sono impostazioni
SET Tex66=che puoi effettuare che fermeranno l'avvio del computer
SET Tex67=Continua installando i trucchi
SET Tex68=per continuare
SET Tex69=per tornare indietro
SET Tex70=Le impostazioni sono state salvate
SET Tex71=Il file undo e' stato creato
SET Tex72=Il file INF e' stato creato
SET Tex73=Sto installando i trucchi
SET Tex74=i trucchi sono stati installati
SET Tex75=Nome impostazione
SET Tex76=Valori validi
SET Tex77=raccomandato
SET Tex78=Informazione
:: ie Press: 0 for OFF
SET Tex79=Premi
SET Tex80=per
SET Tex81=Impostazioni raccomandate
SET Tex82=per cancellare questa impostazione interamente
SET Tex83=per tornare indietro
SET Tex84=l'impostazione default e'
SET Tex85=disabilita
SET Tex86=per configurare automaticamente questa impostazione basata sulla RAM
SET Tex86a=per scegliere automaticamente l'impostazione migliore
SET Tex87a=Hai meno
SET Tex87=di
SET Tex88=di RAM installata
SET Tex89=Significa che e' raccomandato impostarla
:: SET Tex90=
SET Tex91=o piu'
SET Tex92=Non inserire niente
SET Tex93=Inserisci il nuovo
SET Tex94=dimensioni buffer
SET Tex95=Questo valore non e' valido
SET Tex96=Inserisci un valore tra
SET Tex97=e
SET Tex98=il valore
SET Tex99=di default
SET TexRe=Riavvia ora
SET Tey00=per inserire la cifra manualmente
SET Tey01=Visto che la tua RAM e'
SET Tey02=l'impostazione e'
SET Tey03=Meglio configurarlo a
SET Tey04=Usare una guida di
SET Tey05=Questo abilita l'accesso a 32 bit per il tuo hard disk
SET Tey06=Il computer partira' con prestazioni ridotte con l'opz. disabilita
SET Tey07=Disabilitare e' inutile per la risoluzione problemi
SET Tey08=Questo forza il sistema per usare quanto piu' possibile
SET Tey09=la memoria fisica, prima di usare l'hard disk
SET Tey10=Raccomandato per computer con 256mb di RAM o oltre
SET Tey11=Interessa le comunicazioni con periferiche incluse
SET Tey12=schede audio FM/wavetable, playback-registrazione MIDI
SET Tey13=e disco di lettura-scrittura
SET Tey14=Specifica i secondi che si esegue un applicazione con
SET Tey15=priorita' incrementata quando riceve una battitura. Rende la
SET Tey16=tastiera piu' pronta quando si eseguono applicazioni multiple.
SET Tey17=Imposta il tempo minimo in cui ogni processo ha
SET Tey18=accesso alla CPU. Valori bassi migliorano il multi-tasking
SET Tey19=ma diminuisce le prestazioni generali e viceversa.
SET Tey20=Per attivare il supporto ai removibili
SET Tey20a=drive
:: like as in "turn on support for removable drives like Iomega, Syquest, etc"
SET Tey21=per esempio
SET Tey22=dipende dalla RAM
SET Tey23=Specifica dimensioni di ogni blocco del buffer di memoria in byte
SET Tey24=Usa chunk grandi se hai molta RAM
SET Tey24a=ma troppo grande funzionera' a dispetto dell'efficienza
SET Tey25=E' una buona idea usare valori che sono multipli di
:: min as in minimum
SET Tey26=min
:: max as in maximum
SET Tey27=max
SET Tey28=Vcache is the Windows disk-caching virtual device driver
SET Tey29=Fornisce prestazioni del disco eccellenti, per non usarne altri.
SET Tey30=es SmartDrv, ecc...
SET Tey31=Eccellente

This post has been edited by Max_04: 12 March 2007 - 01:33 PM


#19 User is offline   RainyShadow 

  • Member
  • PipPip
  • Group: Members
  • Posts: 211
  • Joined: 30-December 05

Posted 12 March 2007 - 02:22 PM

View Postsoporific, on Mar 12 2007, 09:36 AM, said:

It's about time i made my DOS programs 4DOS compatible. Is there some information i can see that will see where i can work around incompatibilities? Can you send me anything? you can get my email via my profile...

What information do you need ?
Just ask and i'll try to answer as good as i can.

btw. I've looked a bit in your code and found a few flaws.
The Install.bat script assumes default short (8.3) filenames, but these aren't always reliable.
What if (just an example) i have a file named AutoSystemBackup.pif on my desktop? Its short name would be the same you use to run your app after install. And yours would be named Autosy~2.pif instead.

Some of the values your scripts look for:

Quote

c:\tools\4dos>VER
4DOS 7,50 (Win98) DOS 7,10


Quote

c:\tools\4dos>mem

Memory Type Total Used Free
---------------- -------- -------- --------
Conventional 640K 71K 569K
Upper 43K 23K 20K
Reserved 0K 0K 0K
Extended (XMS) 65 429K ? 522 244K
---------------- -------- -------- --------
Total memory 66 112K ? 522 833K

Total under 1 MB 683K 93K 589K

Total Expanded (EMS) 64M (67 108 864 bytes)
Free Expanded (EMS) 16M (16 777 216 bytes)

Largest executable program size 569K (583 120 bytes)
Largest free upper memory block 10K (10 416 bytes)
MS-DOS is resident in the high memory area.


Quote

c:\program files\autosys>bin\FREEMEM.exe

Memory Type Total Used Free
---------------- -------- -------- --------
Conventional 640K 71K 569K
Upper 43K 23K 20K
Reserved 341K 341K 0K
Extended (XMS) 523 200K 956K 522 244K
---------------- -------- -------- --------
Total memory 524 224K 1 391K 522 833K

Total under 1 MB 683K 94K 589K

Total Expanded (EMS) 64M (67 108 864 bytes)
Free Expanded (EMS) 16M (16 777 216 bytes)

Largest executable program size 569K (583 104 bytes)
Largest free upper memory block 10K ( 10 416 bytes)
Windows is resident in the high memory area.


Incorrect (for 4DOS) usage of IF

Quote

c:\program files\autosys>Start_Me.bat

LOCATE is: "C:\Progra~1\AutoSYS"
COMSPEC is: C:\TOOLS\4DOS\4DOS.COM
Press any key when ready...
C:\Progra~1\AutoSYS\code\SYS_Inst.bat [6] Usage : IF [/I] [NOT] condition ...

This was only tested with Windows 98 second edition.

You should only use this for Win9x or WinMe machines but
you can choose to ignore this warning, if you must.

Exit now? [Y/N]

Also you might want to specify in the :NOTWINMS message that the scripts need M$ Command.com as a shell.

A typo:

Quote

:NOUNDO
echo.
echo. It seems you haven't yet made an unfo file.


You'll find an output log and an 4DOS log in the attachment.
I used to get the same ASET error as Max_04 on the first tries. I'm not sure if it got somehow fixed when i ran the scripts from the command line or just the message was hidden.

Attached File(s)

  • Attached File  log.txt (2.81K)
    Number of downloads: 1
  • Attached File  log1.txt (8.32K)
    Number of downloads: 1


#20 User is offline   Drugwash 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 869
  • Joined: 21-June 06
  • OS:98SE
  • Country: Country Flag

Posted 12 March 2007 - 04:13 PM

Please look at this piece of code, for RAM detection routine; note that on certain systems with regional settings different than English, separators are swapped - meaning comma is period and period is comma. This code has them switched, which works on my system and it detects the 240MB of RAM I have. We already had this issue in another one of your projects - UBCD, IIRC

Also note that FREEMEM delivers the result in kB, while MEM delivers it in bytes, so there's no need for three separators detection, but only two of them, while using FREEMEM:

Quote

:GET_RAM
:: this function tries to calculate how much RAM you have installed
:: returns with %NEXT1%

:: first see if there is a manual RAM size file
IF EXIST "%LOCATE%\files\your_RAM.txt" goto MAN_RAM
SET MyFile=C:\@@_tmp.txt

:: see if there are 3 commas, which need to be periods on certain systems
"%LOCATE%\bin\FREEMEM" | Find /i "%memmsg%" > "%MyFile%"
"%LOCATE%\bin\NSET" /P18,1 X=$0 < "%MyFile%"
"%LOCATE%\bin\NSET" /P22,1 Y=$0 < "%MyFile%"
:: "%LOCATE%\bin\NSET" /P26,1 Z=$0 < "%MyFile%"
::IF %X%!==.! IF %Y%!==.! IF %Z%!==.! goto GET_OV1G
IF %X%!==.! IF %Y%!==.! goto GET_OV1G

"%LOCATE%\bin\NSET" /P18 TempVar=$1 < "%MyFile%"
goto GET_UN1G

:GET_OV1G
"%LOCATE%\bin\NSET" /P18 TempVar=$1$2 < "%MyFile%"

:GET_UN1G
"%LOCATE%\bin\ASET" TempVar := SUBALL('K','','%TempVar%')
"%LOCATE%\bin\ASET" TempVar := SUBALL('.','','%TempVar%')
"%LOCATE%\bin\ASET" TempVar := SUBALL(' ','','%TempVar%')
"%LOCATE%\bin\ASET" MyRAM := %TempVar%/1024
"%LOCATE%\bin\ASET" MyRAM := ROUND(%MyRAM%)
:: we have to add 1 to the number, why i don't know.
:: "%LOCATE%\bin\ASET" MyRAM := %MyRAM%+1
"%LOCATE%\bin\ASET" MinVal := %MyRAM%*128
"%LOCATE%\bin\ASET" MaxVal := %MyRAM%*256

This post has been edited by Drugwash: 12 March 2007 - 04:16 PM


Share this topic:


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

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



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