Solved

DOS version & shelling out to DOS

Posted on 1998-08-04
7
138 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 

Expert Comment

by:dokken
ID: 1467758
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
ID: 1467759
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
ID: 1467760
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

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

Expert Comment

by:dokken
ID: 1467762
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
ID: 1467763
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
ID: 1467764
close it now
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month7 days, 7 hours left to enroll

622 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