PC Review


Reply
Thread Tools Rate Thread

Application in C#

 
 
shapper
Guest
Posts: n/a
 
      24th Apr 2009
Hello,

I am not very familiar with windows applications. I work more with NET
applications.

But can I create a simple C# application (maybe Console application)
that when I run it it will:
1. Ask the user to choose "a", "b" or "a and b";
a. Create records on a SQL server database tables.
b. Run another exe application as follows:
packer.exe -m file1 -jsmin file2

I don't know what type of application should I use and how to create
the menu and run the packer.exe application;

Could someone give me some tips on this?

Thank You,
Miguel
 
Reply With Quote
 
 
 
 
Arne Vajhøj
Guest
Posts: n/a
 
      24th Apr 2009
shapper wrote:
> I am not very familiar with windows applications. I work more with NET
> applications.
>
> But can I create a simple C# application (maybe Console application)
> that when I run it it will:
> 1. Ask the user to choose "a", "b" or "a and b";
> a. Create records on a SQL server database tables.
> b. Run another exe application as follows:
> packer.exe -m file1 -jsmin file2
>
> I don't know what type of application should I use and how to create
> the menu and run the packer.exe application;
>
> Could someone give me some tips on this?


Either Windows GUI or console depending on your preferences.

SqlConnection & SqlCommand classes to insert records in database.

Process class (in System.Diagnostics) to run the exe.

Arne
 
Reply With Quote
 
shapper
Guest
Posts: n/a
 
      24th Apr 2009
On Apr 24, 2:46*am, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
> On Thu, 23 Apr 2009 18:25:47 -0700, shapper <mdmo...@gmail.com> wrote:
>
> Do you mean ".NET application"?
>


Basically I have a solution with the following projects:
A) MyApp.Core [C# CLASS Library]
B) MyApp.SqlDataProvider [C# CLASS Library]
C) MyApp.Mvc [ASP.NET MVC Library]

Basically once or more then once I need to do two things:
1. Insert data into the database (but without the need to run the
site);
2. Call Packer.exe to minify the CSS and JS files.

I have all the linq code for (1) and a Bat file with all the code for
(2)

I just would like to add a project to my solution that would execute
my linq code or call packer.exe.
This way I don't need to run the site to insert data or click the
packer.bat.

Do you understand?
I can't create a class library because it does not run like that.
I don't want to use site application for this.

So is a Console Application Project that I should create. Is there it?

Thanks,
Miguel
 
Reply With Quote
 
shapper
Guest
Posts: n/a
 
      25th Apr 2009
On Apr 24, 10:52*pm, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
> On Fri, 24 Apr 2009 04:53:26 -0700, shapper <mdmo...@gmail.com> wrote:
> > [...]
> > So is a Console Application Project that I should create. Is there it?

>
> Seems like a console application would be fine.


Thank You Pete.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
appdata-local-Application Data-Application Data-Application Data infinitum ad nauseum. WHY keepout@yahoo.com.invalid Windows Vista General Discussion 15 16th Sep 2007 01:50 AM
Managed C++: The application failed to initialize properly (0xc000007b).Click on OK to terminate the application. Tommy Vercetti Microsoft VC .NET 4 23rd Mar 2005 08:19 PM
Fail in operating my hardware in web application , makes other windows application startup failure. Ryan.ZhYin Microsoft C# .NET 0 25th Jan 2005 08:34 AM
Please recommend book about design patterns for server application\distrubuted application Julia Microsoft C# .NET 2 11th Dec 2004 01:37 AM
Making more memory available to application?Im making a memory intense application, the application is supposed to open a prettylarge image (about 9200*10200 in 300Dpi) yosh@liquidzone.net Microsoft Dot NET Framework Forms 0 6th Dec 2004 07:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:43 AM.