IPB

Google Frontpage Forums Unattended CD/DVD Guide
 
Reply to this topicStart new topic
> windows 98 batch file reader for NT, is there an emulator or something
TheRedFox
post Jun 22 2008, 07:06 PM
Post #1


Junior
*

Group: Members
Posts: 80
Joined: 4-April 08
From: MN
Member No.: 185257
OS: 98SE
Country Flag


I'm doing an online lesson on writing batch files (it's written for 9x computers). I tried sending one to a friend who had XP, and it didn't run because the "choice" command didn't register with the XP computer. I'm wondering if there's some sort of emulator that would have the ability to run a 9x batch file on an NT computer. i understand that alot of commands and syntax are the same, but not all.
Go to the top of the page
 
+Quote Post
crahak
post Jun 22 2008, 07:20 PM
Post #2


Coffee Aficionado
********

Group: Members
Posts: 2846
Joined: 14-July 04
From: Coffeeland
Member No.: 24596
OS: Vista Ultimate x86
Country Flag


Two things:

First, you could grab choice.exe from the win2k resource kit or such, or a similar 3rd party util (Win2003 and Vista do have choice.exe, and I believe Win 2008 does too).

Secondly, why learn the win98 specific stuff, instead of the newer/more recent ways? i.e. SET /P
Go to the top of the page
 
+Quote Post
herbalist
post Jun 22 2008, 09:32 PM
Post #3


resident paranoid
**

Group: Members
Posts: 282
Joined: 15-December 06
Member No.: 118612
OS: 98
Country Flag


There's enough differences between 9X and NT systems that batch files written for one probably won't work on the other. I use a lot of batch files on my 98 boxes. None of them worked properly on a Win2K box without a lot of changes.

Besides the differences in syntax and in the commands themselves, you also have the problem of long file names, which are common on NT systems but have to be truncated for batch files in DOS. The truncated names used by DOS will cause problems in batch files run on NT systems. All the paths are likely to be completely different as well. On NT systems, the batch files run in windows, which limits what can be done with them compared to those running in pure DOS.

I haven't seen an emulator that does what you're asking. Even if one does exist and can handle the differences in the commands, file name length, and the syntax, it wouldn't be able to account for the differences in the paths used in the batch file. You'd still have to edit those manually. It would be easier in the long run just to write separate batch files for each.
Rick
Go to the top of the page
 
+Quote Post
TheRedFox
post Jun 24 2008, 04:04 PM
Post #4


Junior
*

Group: Members
Posts: 80
Joined: 4-April 08
From: MN
Member No.: 185257
OS: 98SE
Country Flag


I appreciate all of your input. The reason why I'm learning then 9x syntax is because the tutorial I found happens to use that. also I generally use my Windows 98SE laptop rather than an XP computer.
Go to the top of the page
 
+Quote Post
Th3_uN1Qu3
post Jun 24 2008, 06:02 PM
Post #5


Digital sinner
***

Group: Banned
Posts: 435
Joined: 17-March 08
From: Bucharest
Member No.: 182383
OS: Vista Ultimate x64
Country Flag


QUOTE (TheRedFox @ Jun 25 2008, 01:04 AM) *
I appreciate all of your input. The reason why I'm learning then 9x syntax is because the tutorial I found happens to use that. also I generally use my Windows 98SE laptop rather than an XP computer.


I'm actually glad they're different. I'm doing a XP patch for an older game and i use command line scripts a lot. On 98/Me the batch simply does not run, sparing me of the trouble to implement a version checker. thumbup.gif

You can run a virtual 98 machine inside your XP and learn on that.
Go to the top of the page
 
+Quote Post
herbalist
post Jun 24 2008, 06:11 PM
Post #6


resident paranoid
**

Group: Members
Posts: 282
Joined: 15-December 06
Member No.: 118612
OS: 98
Country Flag


One of the better sites I've seen for DOS and Windows command line is at Computer Hope. They have separate pages for each command and show the differences in the syntax each one needs for both DOS and Windows NT systems.

Some more DOS sites:
http://www.ahuka.com/dos/index.html
http://dos.rsvs.net/
http://home7.inet.tele.dk/batfiles/batfiles.htm
Rick

This post has been edited by herbalist: Jun 24 2008, 06:26 PM
Go to the top of the page
 
+Quote Post

Google Frontpage Forums Unattended CD/DVD Guide

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 4th December 2008 - 11:44 AM
All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2008 msfn.org
Privacy Policy