Solved

DOS version & shelling out to DOS

Posted on 1998-08-04
7
132 Views
Last Modified: 2010-05-03
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?  
0
Comment
Question by:bigc
7 Comments
 

Expert Comment

by:dokken
Comment Utility
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.
0
 

Author Comment

by:bigc
Comment Utility
Thanks, that gets me into the right version of DOS, but I need to know how to run the batch file automatically.
0
 

Expert Comment

by:dokken
Comment Utility
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.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:bigc
Comment Utility
Thanks, I'm sorted now.  Any idea how I now close this question and give you the points?
0
 

Expert Comment

by:dokken
Comment Utility
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.
0
 

Expert Comment

by:zimmy
Comment Utility
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
0
 
LVL 1

Accepted Solution

by:
raider187 earned 50 total points
Comment Utility
close it now
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now