Solved Not an expert with creating batch file for TAS50

June 29, 2014 at 12:54:22
Specs: confignt, any
I've been using tas50 for years, has print to disk option which will print any field in report screen to disk. Then I use exec 'cmd /c filename.bat' to open a new cmd window and start win batch file,

if exist report.file.name notepad /p report.file.name
(which prints your dos report to any default windows printer)
if exist report.file.name del report.file.name
(Deletes report.filename from disk)
I suspect a win.bat can run anything, dos or windows.
Paul Struckman age 66


See More: Not an expert with creating batch file for TAS50

Report •

✔ Best Answer
June 30, 2014 at 12:05:42
Well, it's generally true that DOS/Win9X batch files run okay on WinNT's CMD. Certain commands that were available in DOS were missing from earlier versions of WinNT, but tend to have functional equivalents. You do lose a lot of functionality making a WinNT batch script DOS/Win9x compatible. The "official" Windows scripting language until Vista was VBScript, so that's generally a better option if your chief concern is compatibility between versions.

Still not sure of the point of this topic, though.

How To Ask Questions The Smart Way

message edited by Razor2.3



#1
June 29, 2014 at 14:59:13
For the most part, yes. Seems like there were some minor differences that caused problems such as sometimes a bat file made for dos not exiting properly when run in windows.

Report •

#2
June 29, 2014 at 18:42:07
A) You never specified what is not working. B) Where does "exec" come in? (a TAS50 operation, I'm assuming)
C) If it's just an ASCII file, you can usually just execute: COPY filename LPT1 (or maybe: exec 'COPY filename LPT1' from inside TAS50) to send it to the default printer, bypassing notepad entirely, but that's a matter of preference.

message edited by nbrane


Report •

#3
June 29, 2014 at 20:05:54
I think he wanted to point out that batch files written for dos run equally well in windows command prompt, at least in his experience.

Or maybe not. . .

He first posted this in the windows 7 or 8 forum.


Report •

Related Solutions

#4
June 30, 2014 at 12:05:42
✔ Best Answer
Well, it's generally true that DOS/Win9X batch files run okay on WinNT's CMD. Certain commands that were available in DOS were missing from earlier versions of WinNT, but tend to have functional equivalents. You do lose a lot of functionality making a WinNT batch script DOS/Win9x compatible. The "official" Windows scripting language until Vista was VBScript, so that's generally a better option if your chief concern is compatibility between versions.

Still not sure of the point of this topic, though.

How To Ask Questions The Smart Way

message edited by Razor2.3


Report •

Ask Question