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

Problems creating a process from a .net service

Hi folks,

i have the following problem using c# and .net.

I want to print pdf files by calling the Adobe Acrobat 4 command line
tool.
Here's my code

ProcessStartInfo psi = new ProcessStartInfo();

// Initialize the ProcessStartInfo structure
psi.FileName = "C:\\Programme\\Adobe\\Acrobat
4.0\\Reader\\ACRORD32.EXE";
psi.Arguments = " /n /t C:\\test.pdf \\\\DUSNBK0005\\HP5MP";
psi.WorkingDirectory = "C:\\Programme\\Adobe\\Acrobat 4.0\\Reader";

psi.UseShellExecute = true;
Process proc = new Process();
Process.Start(psi);

If i do this in a normal command line tool, everythink works fine.
If i do this in a running .Net Service, the ACRORD32.EXE is running as
a process, but it hangs and nothing happens.
What am i doing wrong?
I already allowed the service to interact with the desktop and tried
also to start the service with different users, but all time the same.

I'am using VS2003, Framework 1.1. SP1
It makes no differense, if the service runs on windows 2000 server or
Windows XP SP2.

Any help is very welcome

Regards

Frank

Nov 17 '05 #1
1 1593
I don't know the answer to your problem, but I wanted to let everyone
know that '@' will allow you to stop escaping.

psi.Arguments = " /n /t C:\\test.pdf \\\\DUSNBK0005\\HP5MP";

can now be

psi.Arguments = @" /n /t C:\test.pdf \\DUSNBK0005\HP5MP";

Nov 17 '05 #2

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

Similar topics

0
by: JShurmatz | last post by:
If anyone can shed some light on this problem I would greatly appreciate it. I am unsuccessfully trying to use a database connnection retrieved from a pool configured using Java System Web...
3
by: Marco Martin | last post by:
Good Morning Group, I've created an app that "runs in the background "(the window state is minimized, the showintaskbar is false, and it displays a notify Icon.). This program will be running on...
2
by: Praveen K | last post by:
I have a problem in communicating between the C# and the Excel Interop objects. The problem is something as described below. I use Microsoft Office-XP PIA dll’s as these dll’s were been...
2
by: Val3 | last post by:
Hi all. I need to build dll(s) and windows services using VB .NET 2005 Express. When I make File/New project the windows contain only Windows application, Windows control library, Console...
3
by: Jay | last post by:
hi i am jay from bangalore i have one problem ,can u please help me out. i have one windows application and one windows service. from windows application i have to call one process "gpg" to...
16
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client...
1
by: NathanC | last post by:
I am trying to create a simple service since and have never done this before. I have created a new project in VB.NET that is a Windows Service. (Just writing a single event entry to the log, just...
3
by: Russ | last post by:
I have a Web Service that was originally created with .NET VC 2003, and subsequently converted to the 2005 version. It works fine when built as a debug version, and run on the workstation it was...
0
by: Harry Bellafonte | last post by:
Hi I have created a Windows Sesrvice through a reg file. This is the content of the reg file: Windows Registry Editor Version 5.00 "Description"="Starts the User Process."
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: 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
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...
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,...

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.