1.

Solve : upgrade dos?

Answer»

Is there anyway to upgrade my version of dos. I try to work with dos commands I see on the net, and a lot of times the results are not the same.
I run Win98 version 4.10.1998

ThanksWhich commands are you having problems with??? Is it possible you are finding differences between Dos commands and NT command prompt commands???What are you trying to accomplish?prompt $g $p is suppose to SHOW the time and date I get nothing

when I type time I get current time and a line under that that says enter new time.

Also like that .bat below....and when I tell them to locate DRM4.txt (which should be on there desktop) they say they can not find it anywhere in there pc.

So I assume my version of dos is not the same as others or is maybe out of date. The following .bat works PERFECTLY on my pc, but does not work on some others.



@echo off
echo.
echo.
echo.
echo.
echo.
echo This bat Program is for exporting the following keys
echo and or sub directories.
echo Produced by Dwight
echo Do not use without direct permission
echo Do not edit unless you are knowledgable
echo This will place a file on your desktop called DRM4.txt
echo copy this file and paste it back here.
echo.
echo.
echo.
pause
cls
echo.
echo.
echo.
echo.
echo.
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo ~ ~
echo ~ RegXport ~
echo ~ ~
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo.
echo.

pause
cls

echo.
echo.
echo.
echo.
If not Exist C:\DRM437 MkDir C:\DRM437
regedit /e C:\DRM437\ok1.txt "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run"
regedit /e C:\DRM437\ok2.txt "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run"

copy C:\DRM437\*.txt = DRM4.txt
del C:\DRM437\*.txt
rmdir C:\DRM437
echo.
echo.

pause
cls
exit
The Time command you are using is doing exactly what it's supposed to do, show you the current time and prompt you for a new time. See here.

Are you trying to run your .bat file on another pc also using Win.98??? If you are trying to run it in NT the results may well be different. Have you checked the Path on the pc's where you have a problem, perhaps the correct Path is not available on those pc's.

Prompt $p$g on my pc shows the current directory followed by > (C:\>) -- Have you tried prompt $d $t for date & time?? See here. OK I know this is for XP but try them in 98 just for the fun of it...



Good luckHi, okay typing in prompt $D$T displays the Sat 02-04-2006 15:26:20.75

Is there anyway to rectify the problem with RUNNING .bats on other machines.
This is a real problem for me when I need to export reg keys or delete things from the registery for people on line. I work on this site http://forums.thetechguys.com/forumdisplay.php?f=22
Thanks ~ DwightSorry Dwight, I really don't know how to run .bat files on remote pc's. Without knowing the SETUP of the remote pc I think it will be almost impossible to guarantee the outcomes especially if the OS's and Paths differ.

I run XP (Home edition). The thought of someone editing the registry of my pc without first ensuring that I have recent backup gives me the dry horrors bearing in mind that the entire XP Registry should NOT be Exported/Imported for backup purposes, see here.
System Restore will also backup the entire Registry.


The result of using Export/Import with the entire XP registry is that the Imported registry will be MERGED with the existing registry rather than replacing it, think of that for a disaster.


I hope someone with a higher level of knowledge than mine will respond to your query.Yes I understand that importing a reg key will merge it with the registery. I never ask that the whole registery be exported...just certain keys. For example lets say you had W32/Sober-C on your pc which is an internet worm. I would ask you do run a .bat file that would export the following keys to notepad.

HKLM\Software\Microsoft\Windows\CurrentVersion\Run
HKCU\Software\Microsoft\Windows\CurrentVersion\Run

In these keys I would look for the random charcaters that are placed by the infection, if found I would make a regedit4 and have you import these keys back into your registery removing the infection startup point.

HKLM\Software\Microsoft\Windows\CurrentVersion\Run
"cjghw"=-
HKCU\Software\Microsoft\Windows\CurrentVersion\Run
"invhsur"=-

At this point we would be able to FINISH with the eratication of W32/Sober-C.
So this I why I need to be able to work on differnet types of pcs.
Is there even a web site that gives a list of the registery keys for the different os out there so I can compare and locate the differences.

Thanks for coming back Dwight, and for your explanation.

However I still shudder to think of the registry being remotely updated without backup having been taken immediately prior to the update.

I do not know of a website with the info you want, perhaps searching the MS KB will show you something.

Good hunting...Okay I will give that a try.....thanks for your help Dusty.



Discussion

No Comment Found