Link to home
Start Free TrialLog in
Avatar of bigc
bigcFlag for United Kingdom of Great Britain and Northern Ireland

asked on

DOS version & shelling out to DOS

I am running VB4 from Win95 from my hard drive, but we have recently updated our network to Novell 4.  When I shell out to DOS, I get the message 'Incorrect DOS version', and it won't run any commands.  When I go into DOS normally, it is running version 4.00, and will run the batch files I'm trying to run from VB.  Any idea where I can change/choose where to pick DOS up from?  
Avatar of dokken
dokken

When you write the shell function, have it point to the location and filename of the command.com

so instead of having it say:  command.com   have it say (path)command.com

I had a problem similar to this, only with Win95 and dos apps over the network.
Avatar of bigc

ASKER

Thanks, that gets me into the right version of DOS, but I need to know how to run the batch file automatically.
Easy, did it a million times... put the path to the command.com as the first line of the batch file. Then use the shell as normal with the batch file.
Avatar of bigc

ASKER

Thanks, I'm sorted now.  Any idea how I now close this question and give you the points?
You should see some options at the bottom of the page... Excellent, etc. I think you are suppose to select the one for how helpful I was.  I've asked questions before, but never really paid attention to the screen.
dokken,

This question is still open. YOU have to resubmit something as an answer before bigc can award you any points.

Good answer, by the way.

Zimmy
ASKER CERTIFIED SOLUTION
Avatar of raider187
raider187

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial