473,398 Members | 2,188 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,398 software developers and data experts.

Cannot get Process.Start to function.

Greetings. I am trying to simply have a batch file run on the server from an
ASP.NET webform. I had started out with a rather full-figured
implementation, using properties to add arguments, redirect output, etc...
however, even when reduced to the simplest form:

System.Diagnostics.Process.Start("C:\\testing.bat" );

Absolutely nothing happens whatsoever. No error, nothing. Am I, a
self-professed C# noob, missing something obvious here? TIA..

Hal Meyer
Nov 18 '05 #1
2 1190
What does testing.bat do? Do you see the results of whatever it does (copy a
file, etc)?

What do you expect to happen that does not?

"Hal Meyer" <in**@thepatchwerks.com> wrote in message
news:ub**************@TK2MSFTNGP09.phx.gbl...
Greetings. I am trying to simply have a batch file run on the server from an ASP.NET webform. I had started out with a rather full-figured
implementation, using properties to add arguments, redirect output, etc... however, even when reduced to the simplest form:

System.Diagnostics.Process.Start("C:\\testing.bat" );

Absolutely nothing happens whatsoever. No error, nothing. Am I, a
self-professed C# noob, missing something obvious here? TIA..

Hal Meyer

Nov 18 '05 #2
Hi Hal:

You could be getting an access denied message. Check the OutputStream
of the process.

--
Scott
http://www.OdeToCode.com

On Wed, 11 Aug 2004 10:24:45 -0400, "Hal Meyer"
<in**@thepatchwerks.com> wrote:
Greetings. I am trying to simply have a batch file run on the server from an
ASP.NET webform. I had started out with a rather full-figured
implementation, using properties to add arguments, redirect output, etc...
however, even when reduced to the simplest form:

System.Diagnostics.Process.Start("C:\\testing.bat" );

Absolutely nothing happens whatsoever. No error, nothing. Am I, a
self-professed C# noob, missing something obvious here? TIA..

Hal Meyer


Nov 18 '05 #3

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

Similar topics

12
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am...
9
by: Paul | last post by:
Hi, VB.NET is saying the file I am creating is in use by another process and won't complete its task of moving the file to the specified destination folder. Here is my code (the main bit...
3
by: Liu Ju | last post by:
Dear members: I want to use the multithread in my program which is developed in Visual C++ platform (version 6). I created a controlling function: UINT CCOMM1Dlg::WritingThreadFunc(LPVOID...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
4
by: Yiu | last post by:
upgent help i want to start IE explorer using C# i try many code such as below: ProcessStartInfo startInfo = new ProcessStartInfo("IEXPLORE.EXE"); Process.Start(startInfo); or Process...
12
by: John F. | last post by:
Here is my code; Dim psi As New System.Diagnostics.ProcessStartInfo psi.UseShellExecute = True psi.FileName = "C:\WinProg.exe" System.Diagnostics.Process.Start(psi) Have tested WinProg.exe...
0
by: Pawan Narula via DotNetMonster.com | last post by:
hi all, i'm using VB.NET and trying to code for contact management in a tree. all my contacts r saved in a text file and my C dll reads them one by one and sends to VB callback in a sync mode...
0
by: henning.friese | last post by:
Hello NG, I'm need to write some code which creates tiff files from various document types (doc, pdf, xls). I want to do this by ShellExecuting (via System.Diagnostics.Process) the doc-files...
4
by: kkt49 | last post by:
# vim: et sw=4 ts=8 sts from wxPython.wx import * import sys, os, time import pywintypes import win32serviceutil import win32service import win32event import win32process
0
by: =?Utf-8?B?Um9i?= | last post by:
I've a requirement to monitor when certain applications are started. I'm using WMI called from VS Stusio 2005 in VB to trap Excel and Word starting. I've written the following console application...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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
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...
0
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,...
0
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...

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.