473,513 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to execute a batch file without showing the execution?

Hi Everybody,

Is anybody knows how to Hide Execution of batch file at background? I mean
without displaying the DOS Prompt window while batch file is being executed.
I used code below to execute batch file. Is there other ways to do this? I
need help. Thanks.

Code:
System.Diagnostics.Process.Start("batchfile1.bat") ;
den2005
--
MCP Year 2005, Philippines
Nov 1 '05 #1
2 7239
Den,

I thought that it was this one.

Using................
\\\
Process p = new Process();
p.WindowStyle = ProcessWindowStyle.Hidden;
p.FileName = "batchfile1.bat";
p.Start();
///
I hope this helps,

Cor

"den 2005" <de*****@discussions.microsoft.com> schreef in bericht
news:3D**********************************@microsof t.com...
Hi Everybody,

Is anybody knows how to Hide Execution of batch file at background? I
mean
without displaying the DOS Prompt window while batch file is being
executed.
I used code below to execute batch file. Is there other ways to do this? I
need help. Thanks.

Code:
System.Diagnostics.Process.Start("batchfile1.bat") ;
den2005
--
MCP Year 2005, Philippines

Nov 1 '05 #2
Thanks Cor, but I solved it earlier when I found clues on another forum at
VBCity.com. But thanks anyway.

den2005
--
MCP Year 2005, Philippines
"Cor Ligthert [MVP]" wrote:
Den,

I thought that it was this one.

Using................
\\\
Process p = new Process();
p.WindowStyle = ProcessWindowStyle.Hidden;
p.FileName = "batchfile1.bat";
p.Start();
///
I hope this helps,

Cor

"den 2005" <de*****@discussions.microsoft.com> schreef in bericht
news:3D**********************************@microsof t.com...
Hi Everybody,

Is anybody knows how to Hide Execution of batch file at background? I
mean
without displaying the DOS Prompt window while batch file is being
executed.
I used code below to execute batch file. Is there other ways to do this? I
need help. Thanks.

Code:
System.Diagnostics.Process.Start("batchfile1.bat") ;
den2005
--
MCP Year 2005, Philippines


Nov 3 '05 #3

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

Similar topics

0
1356
by: Sojwal | last post by:
We're trying to trigger execution of some WSH scripts from a batch file which in turn is called from an ASP script. The ASP code looks like: <% Dim oShell,sResult,sPath Set oShell =...
4
2466
by: carrot | last post by:
With .Net Studio, I have a solution includes some projects. I want to execute a batch file during build solution time. For example, 1'st project is builded. 2'nd project is builded. " a batch...
2
2797
by: DB | last post by:
Hi All, I have to execute dos command containing batch file using asp.net application. Code for batch file execution is working properly when I tried it with console application but same code...
2
586
by: den 2005 | last post by:
Hi Everybody, Is anybody knows how to Hide Execution of batch file at background? I mean without displaying the DOS Prompt window while batch file is being executed. I used code below to execute...
3
7556
by: JoelBrimm | last post by:
I have a batch file that executes a command line utility to do a secure file copy from our server to a 3rd party server. The batch file works fine, but when I call it from the web service the log...
1
3744
by: Crash | last post by:
Hi, ..NET v1.x SP1 VS 2003 SQL Server 2000 SP3 Server 2000, XP, Server 2003 I would like to programmatically execute {possibly many} SQL Server batch scripts. Aka I have many scripts that...
0
1715
by: ee_stevek | last post by:
hi guys, here is my problem: i have to maintain a web vb.net application developped some times ago. The application was developped on Windows2000 SP3 with Visual Studio 2003 (7.1). and the...
1
5268
by: byjufromgamut | last post by:
I created a batch file, when executes gives a preview window(using swings & JFrame). I created another java fie in which used a Process object and Runtime.getRuntime().exec(path) , where path...
2
2568
by: abhaybhat | last post by:
I run a batch file, which is nothing but a make file of my project. It also does linting for me. Hence the execution of the batch file in the DOS window can be seen, which is very huge(i have...
0
7162
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7539
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7101
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7527
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3223
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1597
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.