Article View: alt.lang.basic
Article #402Has PRINT been used yet?
From: Jon Arnold
Date: Fri, 18 Dec 1992 02:39
Date: Fri, 18 Dec 1992 02:39
21 lines
1357 bytes
1357 bytes
This might be more an MS/DOS question, but I'll post it here, since I'm
trying to accomplish this using Basic. In DOS (v5.0), the *first* time
you go to use the PRINT command, DOS will ask you where you want the
file printed to; You can override this question by using the "/D:"
switch on the PRINT command line.
However, *after* the first time you print, the "/D:" switch is no longer
valid; in fact, it generates an error message.
I've got a program where I want to shell out to DOS to print a report.
However, I don't know how to setup the program so that it will know whether
it needs to PRINT/D: or just PRINT. Is there an environment variable
or something that can be examined to determine whether or not the "/D:"
switch will be required, or if a PRINT has already been done since the
last boot?
Jon Arnold Phone: W: 603-883-1233
Nashua, New Hampshire Fax: W: 603-883-7350
H: 603-883-6371
"If you ain't the lead dog, the view never changes."
Technical Details
Message-ID:
<724646371snx@tixel.mv.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!mv!tixel!jarnoldShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!mv!tixel!jarnold From: jarnold@tixel.mv.com (Jon Arnold) Newsgroups: alt.lang.basic Subject: Has PRINT been used yet? Distribution: world Message-ID: <724646371snx@tixel.mv.com> Date: Fri, 18 Dec 92 02:39:31 GMT Reply-To: jarnold@tixel.mv.com Lines: 22