Computing.Net > Forums > Windows 2000 > Running old dos batch programs in Win2k

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Running old dos batch programs in Win2k

Reply to Message Icon

Name: Joe McCann
Date: August 12, 2002 at 14:33:38 Pacific
Comment:

I have some old dos apps that I run in windows 2000. I have a seperate batch program that backs up the files to these programs. These are very basic ".bat". files that zip up files in a directory and copies them to a network drive. The main "bat" file, "backit.bat", has a call in it to another batch file "getoday.bat", which grabs the system date and appends it as the filename for the zip file. Ie, the "backit.bat" calls "getoday.bat" then zips the files and gives the zip file the name derived from "getoday" (so if I just ran it, the file created would be "08-12-20.zip"). The problem is these batch programs error out when I run them from an icon in windows 2000. Is there something you need to do to get old dos batch files to run under windows 2000? Any info would be great (sorry, I really do not have time to re-create backup programs - I am hoping there is a simple fix such that my current batch files will work).



Sponsored Link
Ads by Google

Response Number 1
Name: Lucid
Date: August 13, 2002 at 12:34:42 Pacific
Reply:

It depends.

Some commands are different in W2K as it has a different kernel. So check your commands by executing each manually and seeing if they work.

The other problem might be that they are executing at the same time, thus one of them is trying to do something to a piece that doesn't exist yet because that part of the batch file hasn't completed. So again, check your batch files manually to make sure they work...


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: Running old dos batch programs in Win2k

Running old DOS games on Windows 2000 www.computing.net/answers/windows-2000/running-old-dos-games-on-windows-2000/15283.html

Batch problems in Win2k www.computing.net/answers/windows-2000/batch-problems-in-win2k/25789.html

Dos Programs in Win2000 www.computing.net/answers/windows-2000/dos-programs-in-win2000/32474.html