473,473 Members | 2,303 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Running a DOS Batch file from a program.

UJ
How do I run a dos batch file from a program? I am guessing I have to run
cmd.exe with the parameter of the batch file.

TIA - Jeff.
Oct 27 '05 #1
5 1217
This is simpler: Process.Start ("mybatfile.bat")

"UJ" <fr**@nowhere.com> wrote in message
news:uX**************@TK2MSFTNGP15.phx.gbl...
How do I run a dos batch file from a program? I am guessing I have to run
cmd.exe with the parameter of the batch file.

TIA - Jeff.

Oct 27 '05 #2
UJ
Cool.

Thanks!

"Siva M" <sh******@online.excite.com> wrote in message
news:ec**************@TK2MSFTNGP15.phx.gbl...
This is simpler: Process.Start ("mybatfile.bat")

"UJ" <fr**@nowhere.com> wrote in message
news:uX**************@TK2MSFTNGP15.phx.gbl...
How do I run a dos batch file from a program? I am guessing I have to run
cmd.exe with the parameter of the batch file.

TIA - Jeff.

Oct 27 '05 #3
UJ
Something else I should have pointed out - I need to do this from a service.
Will this still work?

Thanks.

"UJ" <fr**@nowhere.com> wrote in message
news:O%****************@tk2msftngp13.phx.gbl...
Cool.

Thanks!

"Siva M" <sh******@online.excite.com> wrote in message
news:ec**************@TK2MSFTNGP15.phx.gbl...
This is simpler: Process.Start ("mybatfile.bat")

"UJ" <fr**@nowhere.com> wrote in message
news:uX**************@TK2MSFTNGP15.phx.gbl...
How do I run a dos batch file from a program? I am guessing I have to run
cmd.exe with the parameter of the batch file.

TIA - Jeff.


Oct 28 '05 #4
Yes, it will.

"UJ" <fr**@nowhere.com> wrote in message
news:O4*************@TK2MSFTNGP15.phx.gbl...
Something else I should have pointed out - I need to do this from a service.
Will this still work?

Thanks.

"UJ" <fr**@nowhere.com> wrote in message
news:O%****************@tk2msftngp13.phx.gbl...
Cool.

Thanks!

"Siva M" <sh******@online.excite.com> wrote in message
news:ec**************@TK2MSFTNGP15.phx.gbl...
This is simpler: Process.Start ("mybatfile.bat")

"UJ" <fr**@nowhere.com> wrote in message
news:uX**************@TK2MSFTNGP15.phx.gbl...
How do I run a dos batch file from a program? I am guessing I have to run
cmd.exe with the parameter of the batch file.

TIA - Jeff.



Oct 28 '05 #5
UJ
Thanks for the info.

"Siva M" <sh******@online.excite.com> wrote in message
news:O2****************@tk2msftngp13.phx.gbl...
Yes, it will.

"UJ" <fr**@nowhere.com> wrote in message
news:O4*************@TK2MSFTNGP15.phx.gbl...
Something else I should have pointed out - I need to do this from a
service.
Will this still work?

Thanks.

"UJ" <fr**@nowhere.com> wrote in message
news:O%****************@tk2msftngp13.phx.gbl...
Cool.

Thanks!

"Siva M" <sh******@online.excite.com> wrote in message
news:ec**************@TK2MSFTNGP15.phx.gbl...
This is simpler: Process.Start ("mybatfile.bat")

"UJ" <fr**@nowhere.com> wrote in message
news:uX**************@TK2MSFTNGP15.phx.gbl...
How do I run a dos batch file from a program? I am guessing I have to
run
cmd.exe with the parameter of the batch file.

TIA - Jeff.



Oct 31 '05 #6

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

Similar topics

0
by: SkySea | last post by:
Hi! Any help on this would be appreciated... In an HTML document that lists instructions on installing some software, there's a point where a DOS batch file needs to be run in order to copy...
0
by: joeted | last post by:
Hi, I am using system.diagnostic.process with the intention of running a program to communicate with a unix box: The program is "PuTTY", running from a batch script. I know it works because...
5
by: UJ | last post by:
How do I run a dos batch file from a program? I am guessing I have to run cmd.exe with the parameter of the batch file. TIA - Jeff.
4
by: Shiraz | last post by:
Hi I'm using Visual Studio Installer to make my installer, and have not as yet figured out a straightforward way to use it to set environmental variables. Amongst the various things I tried, I'm...
3
by: emman_54 | last post by:
Hi every one, I am trying to run a batch file using my asp.net application. I am using the Process class to run the batch file. When I run my web application, In the task manager, i could see...
0
by: sunrt | last post by:
We have an As400 system that has program which executes batch files which resides on the SQL server 7.0 computer . Those batch files run SQL server jobs using isql. The whole idea about this is...
4
lifeisgreat20009
by: lifeisgreat20009 | last post by:
This is what i am getting on running the program......... C:\PROGRA~1\Java\JDK15~1.0\bin>javac Editor.java Note: Editor.java uses or overrides a deprecated API. Note: Recompile with...
14
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, In my windows applicationm, i need to excute a batch file. this batch file throws some text and questions to the screen, i need to catch the standard Output, check if it's a question, in...
7
by: FireImp | last post by:
So I've read a lot of post about how to run a batch file from within the C# program. And I followed the instructions with a few alterations to fit my needs. First I am using cmd.exe to actually run...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.