S?bastien WILLEMIJNS said:
hello,
i'm looking for a site who know all the differences between 98 and XP
batchs language because i want to update my 98 batchs to XP
Good luck. But you may be making too much work for yourself. It is quite
likely that your batch files do not use all of the Win98 features that would
cause you problems when converting them to XP.
Also, some of the differences are merely additional features in XP that,
since they do not exist in 98, your batches will not be using them. For
example, XP batch has boolean operators like:
if /i "%var%" EQU "john" ...
You may be using the "==" operator, which works just as well in XP.
Similarly, in XP, you can do arithmetic with variables:
set /a var1 = 12
set /a var2 = 23
set /a var = var1 * var2
Nice to know, but since your 98 batches are not likely doing any arithmetic,
there is no need to change them because of this difference.
I'm not suggesting that you will face no challenges in the migration, as
there are a number of things that your batches might be doing that would
work differently in XP. Some of these may be common side effects of commands
that you have come to rely on. While instructive, a site listing all of the
goofy things that have been done to make pre-NT batch more useful would
contain a lot of information otherwise useless to you. Unfortunately, you
are very unlikely to find a site or resource that just the features that you
have implicitly made use of.
Others will, I am sure, give you lots of reference info, and that is great.
I would recommend that you break your project into the following phases:
- are some of your batches generating functionality missing in 98 that is
present in XP without writing a batch file?
- are some of your batches doing things that, because of other differences
between the operating systems, are no longer necessary?
- of the important batch files, which ones run correctly on XP without
modification?
- those that fail to run, do you really need them? do they produce error
messages? What else do they do? Some will likely be fairly easy to track
down by setting echo on instead of off, for example.
Once you have converted your batches to run, and are operational in XP, you
might think about some of the added functionality now available to you,
whether to enhance the operation of the existing scripts or to help you
create new ones. But don't get too involved with adding functionality when
job number one is to get things working in the new environment.
/Al