473,322 Members | 1,522 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Console Program

I need to create a program that can be executed in DOS that will update a Access Database. It will be kicked off by a remote application after it downloads a file. I have tried to create a VB Console application but it won't run from the Console. As you can tell I am extremely new to VB. My only reference has been “VB Now” that comes with VB2005. Thanks
Feb 3 '09 #1
5 1514
Plater
7,872 Expert 4TB
What do you mean it won't run from the console? What does it say?
Feb 3 '09 #2
Plater, Thanks for replying. Console is the term VB2008 uses for a program that runs in DOS mode. Which is the reason it took so long to reply? My DOS sucks since I haven’t used it since 1995. I was trying to send the error displayed in DOS to a file so I could attach it. No luck there but I tried.

The (abbr) error is:
Unhanded exception: Systen.oi.fileNotFoundException could not load file or assembly ‘System.DatasetExtensions, Version 3.5.0.0 …. The system could not find the File ‘Systen.Data.DataExtensions’

Here is my actual problem. A remote computer needs execute the command to update the database after it successfully downloads a file. I need a program that will run on a server without windows running, without Access running. It will update a Access Database. Sounds crazy but that what I need to do.

VB2008 advertised a console program ability. I thought this was possible and made some promises to my superior’s base on the idea I could do this. Now I have to deliver somthing. For now we are doing it manually. Running the program on a machine in MS Windows that has Access installed.

Any ideas.
Feb 5 '09 #3
Plater
7,872 Expert 4TB
All the visual studios had a console program project type. (2003/2005/2008 do at least).
I think you rather confused on your terminology. A console would be any text-based interface. DOS was an operating system that used a console interface, through the "shell" command.com
The "console" project type just means the interaction is done through a text based system, instead of GUI windows (note: you can in fact use gui windows in a console application)

That error message looks like its telling you that you are running on a computer that doesn't have .NET3.5, nothing to do with inability of console programs.
Even though it's a "console" program, it still needs the .NET libraries, which means it need to be running an OS that supports the .NET libraries. It will run in the windows console (which is handled by the "shell" cmd.exe)
Feb 5 '09 #4
Not sure what you are saying. Your right about me being confused. It dosent want to run standalone. It will run on a computer that has Windows XP and Access. But not on a computer that just has XP professional. The Server OS is Windos Server 2003.
Feb 5 '09 #5
Plater
7,872 Expert 4TB
Windows server 2003 will support .NET3.5 I believe, but you will need to install it.
If you are using Access components, you will need the office runtimes, either have office installed on the system, or get the distributables and have them deployed along with your application.
Feb 5 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

19
by: Dave | last post by:
Hi, I have done some research, trying to Clear The Screen in java code. The first option was the obv: system.out.print("\n\n\n\n\n\n\n\n\n\n\n\n"); then i heard about this method:...
1
by: Will Stuyvesant | last post by:
I never used the popen or popen2 libraries but it is my understanding that they can capture the output of console based programs. Is it also possible to send keystrokes to console base programs? ...
6
by: Mark Allison | last post by:
Hi, I have an application that I want to be to run in Console mode and GUI mode. If no params are entered, I want the GUI fired up, if params are entered, then go into console mode. I believe...
1
by: noleander | last post by:
Hi. I've got a C++ program written in Visual C++ 2003. The program is trivial, created with the Program-creation wizard: used the .NET "Form" template. The program has a trivial...
1
by: David A. Osborn | last post by:
I am currently working on a program that either works in a GUI or via console depending on what is passed in arguements at runtime. However, every time it is ran in GUI it still opens a console...
3
by: Andrew Ducker | last post by:
We were using Console.Writeline from within our app, to do some routine debugging. And then we started having random problems when the code was run by a tester, on their own machine. We...
4
by: Peter Nimmo | last post by:
Hi, I am writting a windows application that I want to be able to act as if it where a Console application in certain circumstances, such as error logging. Whilst I have nearly got it, it...
3
by: Alex | last post by:
Hello, I'm wroting a console utility in VB 2005, and I need the ability to pass parameters to the application when the program runs. For example, if my program is called testing.exe, I need to...
0
by: Stephen Thomas | last post by:
Hi there I wonder if any one has encountered this problem or can suggest what is wrong. I am trying the a procedure from the msn site but get the following message: Error 1 The type or...
5
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Dear all, I'd like to know if there is any method to minimize command mode window when a console program is running. In my case, there are several console programs which run periodically in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.