473,385 Members | 1,338 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,385 software developers and data experts.

Command Execution

Hi,

I would like to know if it is possible to execute some command in a
Window Application?

I have a simple application with BAT files. I would like to mask the
commands in these files.
So I need ton integrate these commands in a Window Application.

How can I do that?

Thanks a lot.

Mike
Nov 17 '05 #1
1 1210
Hi,

You can use the System.Diagnostics.Process class. Through the Start() method
you launch the bat file, and through ProcessStartInfo you can configure the
process to show no window on screen, etc.

http://msdn.microsoft.com/library/de...starttopic.asp

Regards - Octavio

"Mikaël PLOUHINEC" <mp@cerealog.fr> escribió en el mensaje
news:u9**************@tk2msftngp13.phx.gbl...
Hi,

I would like to know if it is possible to execute some command in a Window
Application?

I have a simple application with BAT files. I would like to mask the
commands in these files.
So I need ton integrate these commands in a Window Application.

How can I do that?

Thanks a lot.

Mike

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: wai yung | last post by:
Hi all, I need to execute a command, a method of an object, which will run for an uncertain amount of time. It could be a long time. So what I want to do is if the command does not return , say ,...
1
by: TEK | last post by:
Hello I'm wondering if anyone out there might give some input/suggestions/viewpoints around the Command pattern. In my case, the number one priority for using the pattern is undo support. Some...
3
by: Nathan Sokalski | last post by:
I want to create a procedure in ASP.NET to run the "SET DEFINE OFF" command in an Oracle database. I tried the following: Public Shared Sub SetDefineOff() Dim myconnection As New...
8
by: Peter A. Schott | last post by:
Per subject - I realize I can copy/paste a line at a time into an interactive session when I'm trying to debug, but was wondering if there is any tool out there that allows me to copy sections of...
2
by: Mark | last post by:
Hi all, a quick ADO.NET question in regards to the command object. What are the advantages (if any) of specifying command parameters when executing a stored procedure over just calling the stored...
4
by: G. Miller | last post by:
Hey, I'm trying to automate an import routine by using the shell command to call a batch file that will run a vendor export utility before continuing with the import. The problem is that...
0
by: Tharpa Roberts | last post by:
Under Visual C++ 6.0, if you made a command-line program, it would stay open after execution, and then you would press any key to close it. Under Visual Studio 2005, if you make a C++ command...
1
by: klmishraa79 | last post by:
i want to know how i can put a time delay between two command execution...i.e. after first command of programm the second command should execute after some fixed delay......i want to use time delay...
2
by: preethi303 | last post by:
Hi, I have a program that displays a status message using a label and during the execution of a command that takes a couple of seconds, I want the label to display the message ("Configuring,...
5
by: dsky | last post by:
I have a program in C#.NET which runs in both GUI and command line mode. When I pass the command line arguments to the executable like: C:\>myprogram.exe -a file.txt the program is invoked,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.