From: "Greg Conway" <greg@gmlnt.com>
To: linux-msdos@vger.kernel.org
Subject: DOS errorlevel not working?
Date: Mon, 29 Apr 2002 23:33:21 +0100 [thread overview]
Message-ID: <NCBBJBAFFFABNNNPPKNOAEECDPAB.greg@gmlnt.com> (raw)
Hi all,
I've just found DOSEMU yesterday, when I discovered I needed X windows to
run WINE!
I am trying to get the Norton Anti-Virus Scanner NAVDX.EXE working under
Linux. This is all fine, I've managed to get the
thing working, and mount the folder I wish to scan as my D: drive (has taken
me some time but there was documentation for all this on the web!!)
However, I'm having trouble with the errorlevel command, and returning the
result to Linux. Consider the following DOS program:
@echo off
c:\navdx\navdx.exe c:\virusfolder /s+ /doallfiles /zips /delete
if errorlevel 13 echo "virus"
if errorlevel 0 echo "clear"
simple stuff. Under Win2K, this program does the decent thing and returns
"virus" and "clear", as expected (DOS errorlevel command reports >= rather
then = if I remember correctly!), if I drop the EICAR test files into the
directory c:\virusfolder.
However, under DOSEMU (I'm running the binaries with FreeDOS) it returns
errorlevel 0 every time.
Any ideas what could be going wrong here? I'm pulling my hair out over this,
and have been scouring the web for examples all day with no success!!
Once I have this sorted, my final problem will be to return the errorlevel
to Linux, where I've called DOSEMU from a shell
script, so if anybody has any ideas on this as well they'd be gratefully
received - the best I've found is a posting so far
that says "how does it work? exitemu 1 doesn't do the job"!!)
Many thanks for any help received.
Regards,
Greg Conway.
(apologies if this is duplicated, my first post does not appear to have
arrived!
***********************************************************************
This is a confidential communication between sender and addressee. If you are not the intended recipient of this message, please notify the sender and do not read, copy, use or disclose this communication to others. Any opinions or views expressed are those of the individual, and unless otherwise stated, are not those of the company. All attachments and intellectual rights remain the property of GML (NT) Limited.
***********************************************************************
next reply other threads:[~2002-04-29 22:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-29 22:33 Greg Conway [this message]
[not found] <3CCDC121.4FDE854B@earthlink.net>
2002-04-30 0:09 ` DOS errorlevel not working? Greg Conway
2002-04-30 13:17 ` H. B.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=NCBBJBAFFFABNNNPPKNOAEECDPAB.greg@gmlnt.com \
--to=greg@gmlnt.com \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox