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

Process.Start syntax

mg
c:\pdf\pdfmp3d.exe /c:\exportfiles /0 /0 /0 /0 runs correctly in the Command
Prompt.

But, not in the C# code behind of a WebForm:

System.Diagnostics.Process.Start("c:\\pdf\\pdfmp3d .exe","/c:\\exportfiles /0
/0 /0 /0");
Nov 18 '05 #1
2 1054
the program will run as the asp.net account, not the impersonated account)
which generally does not have access to the c:\

also, if the program opens a window it will not run.

-- bruce (sqlwork.com)

"mg" <mg@discussions.microsoft.com> wrote in message
news:E9**********************************@microsof t.com...
| c:\pdf\pdfmp3d.exe /c:\exportfiles /0 /0 /0 /0 runs correctly in the
Command
| Prompt.
|
| But, not in the C# code behind of a WebForm:
|
| System.Diagnostics.Process.Start("c:\\pdf\\pdfmp3d .exe","/c:\\exportfiles
/0
| /0 /0 /0");
Nov 18 '05 #2
Check out this support link,
http://support.microsoft.com/default...b;en-us;555134

also to know about process.start syntax, check outt his link
http://www.code-magazine.com/Article...uickid=0403051

--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"mg" <mg@discussions.microsoft.com> wrote in message
news:E9**********************************@microsof t.com...
c:\pdf\pdfmp3d.exe /c:\exportfiles /0 /0 /0 /0 runs correctly in the Command Prompt.

But, not in the C# code behind of a WebForm:

System.Diagnostics.Process.Start("c:\\pdf\\pdfmp3d .exe","/c:\\exportfiles /0 /0 /0 /0");

Nov 18 '05 #3

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

Similar topics

7
by: Ryan Walker | last post by:
Hi, I'm getting started with python and have almost zero programming experience. I'm finding that there are tons of tutorials on the internet -- such as the standard tutorial at python.org -- that...
2
by: mg | last post by:
c:\pdf\pdfmp3d.exe /c:\exportfiles /0 /0 /0 /0 runs correctly in the Command Prompt. But, not in the C# code behind of a WebForm: ...
3
by: mg | last post by:
The Process.Start( ) method below works correctly. System.Diagnostics.Process.Start("c:\\program files\\adobe\\acrobat 6.0\\reader\\acrord32.exe",@"/t ""c:\exportfiles\d.pdf"" ""HP LaserJet 3300...
6
by: danl | last post by:
I need to be able to execute a .bat file from a C# web application I have the following code that compliles and seems to run fine, but the bat file never does it's work...
3
by: Boni | last post by:
Dear all, is it possible to create and start a class in a new process namespace. What I need is something like: dim _p as new Process((new myclass).Start) But I can't find right syntax for...
17
by: asearle | last post by:
Hallo everyone, After playing around with 'fork' in order to try to get a one process to monitor another, I have changed my tack and switched to Win32::Process. Indeed, it looks like this...
1
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I have a C# application in which I start another process which produces output to stdout and stderr. In fact, that process is the uSoft VS2005 C/C++ compiler itself! I would like to...
4
by: =?Utf-8?B?YmlsbA==?= | last post by:
i'm using VS2005, VB.NET windows forms application when I try to open a web page using process.start, i get an error: "application not found" I'm using this syntax: ...
12
by: =?Utf-8?B?ZXAu?= | last post by:
What is preferred method to start an app process and then fill in form fields? The following prog does not compile (b/c AppActivate does not have the correct param):...
7
by: Kevin Vogler | last post by:
I'm trying to programatically run an app. The command line syntax is: "C:\Program Files\WinSCP3\WinSCP3.exe" -script=myscript.txt and it works as intended. In code, I have this Dim myProc As...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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
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
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,...

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.