PRocesses: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9
Dlls: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9
Popular: svchost.exe | csrss.exe | rthdcpl.exe | spoolsv.exe | mrt.exe | lsass.exe | Home | Manufacturers | Top 1000

utility.exe

Run new process as admin and read standard output

I want to allow users to run a command line utility as administrator from within my non-admin program and for my program to get the output. The utility is third-party but is distributed with my programme.

I can redirect the output of a program and I can run a program as administrator but I can't do both at the same time.

The only thing that I can get to work at the moment is using cmd.exe to redirect the output to a file, e.g.:

using System.Windows.Forms;
using System.Diagnostics;
using System.IO;
using System.Reflection;

string appDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
string utilityPath = Path.Combine(appDirectory, 'tools', 'utility.exe');
string tempFile = Path.GetTempFileName();

Process p = new Process();
// hide the command window
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
p.StartInfo.FileName = 'cmd.exe';
// run the tool, redirect the output to the temp file and then close.
p.StartInfo.Arguments = ' /C ''' + utilityPath + '' > '' + tempFile + '''';
p.StartInfo.Verb = 'runas'; // run as administrator
p.Start();
p.WaitForExit();

// get the output, delete the file and show the output to the user
string output = File.ReadAllText(tempFile);
File.Delete(tempFile);
MessageBox.Show(output);


This has two problems: 1) it uses a temporary file and 2) the UAC is for cmd.exe rather then utility.exe. There must surely be a better way to do this?

View Complete Forum Thread with Replies

Related posts for utility.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

How to handle multiple syntax command line arguments using boost.program_options
Server.MapPath and running a command line utility from an ASP.NET application
Dropping a file onto an EXE with parameters
Run new process as admin and read standard output
VBScript to Un-install windows application

utility.exe: How to handle multiple syntax command line arguments using boost.program_options

Consider a utility which can be used in different modes, like:

utility.exe --mode x (one list of arguments expected)
utility.exe --mode y (different list of arguments expected)

How can i write code for parsing such arguments in Boost.Program_Options???

utility.exe: Server.MapPath and running a command line utility from an ASP.NET application

I need to run an executable from an ASP.NET app using Process. The .exe file is located inside the ASP.NET project - 'ProjectRoot/Utilities/utility.exe'

Why does this code fail to run it:

string path = Server.MapPath('/Utilities/');
string args = ' etc etc';
Process p = Process.Start(new ProcessStartInfo(path + 'utility.exe', args));
p.WaitForExit(3000);


I've tried '\utility.exe' too.

utility.exe: Dropping a file onto an EXE with parameters

I'm not sure if this is going to be a programming question or not - it really depends on the answer I guess.

I have command-line utility that can be triggered by dropping a file onto it.

When this occurs, essentially this triggers the process as:

myUtility.exe Filepath/FileName.xyz


I'd like to retain the drag/drop facility, but include a fixed set of options:

myUtility.exe Filepath/FileName.xyz -f -g


Is there a way to do this?

Note the onl

utility.exe: Run new process as admin and read standard output

I want to allow users to run a command line utility as administrator from within my non-admin program and for my program to get the output. The utility is third-party but is distributed with my programme.

I can redirect the output of a program and I can run a program as administrator but I can't do both at the same time.

The only thing that I can get to work at the moment is using cmd.exe to redirect the output to a file, e.g.:

using System.Windows.Forms;
using System.Dia

utility.exe: VBScript to Un-install windows application

I tried to uninstall the windows application exe which is already installed in my system using VBScript. But was not able to Uninstall the exe. Please help me on this. Thanks in advance.

I tried with following code:

Dim oReg, oShell, oFSO
Dim UninstallString, ProductCode
Dim strComputer, colItems, objWMIService, objItem
Dim strKeyPath, subkey, arrSubKeys
strComputer = '.'

'********************************
'Enter Product Code Of The Application Here That You

winword.exe: How do I terminate WINWORD.EXE when used by classic ASP?

I have a user who has to use Microsoft Word 2007 to create and manipulate word documents in his ASP web application. I'm well aware of the 'Considerations for server-side Automation of Office' KB article and the many third party components available to do this kind of thing, but they've gone a fair bit down this road already.

The problem he's having is that the WINWORD.EXE process never terminates even though he calls Quit on the application object.

For example:

Set objWord

werfault.exe: .net executable build on xp, does not start on windows 7 - werfault

i've made a .NET application on an Windows XP workstation and it works fine.
But if i try to run it on Windows 7 the application does not start at all - no windows, no error messages, nothing visibile. I've tryed in every combination of compatibility mode in 7 but no one works.
The only thing i can see in task manager is that when i start the application on windows 7 at the same time the werfault.exe process is started, then after a few seconds both disappears.

Is there a werfault.e

win.exe: WampServer: php-win.exe The program can't start because MSVCR110.dll is missing

if I try to install WampServer the above error appears. I already tried to install all the programs which were recommended, for example here:
WAMP shows error 'MSVCR100.dll' is missing when install

But nothing helps. What can I do to install WampServer?

lsass.exe: How to get debugging information when custom SSP crashes on customer machine at boot?

We've written a custom Security Support Provider package. It works fine in our development environment, but a customer reports that most of the time, it gets into a reboot loop, where they install, the machine reboots and continues rebooting. On some machines things work about 1/8 of the time.

In our development environment, I'd enable kernel debugging before the install, and use gflags to attach ntsd as a debugger to lsass.exe. This article gives a sample. I'd even be happy to walk t

ping.exe: getaddrinfo returns information whereas ping.exe says ip is unreachable

I work on a problem where I want to avoid a system to launch a connection retry when the target ip is not reachable. (The target ip can be on and off at different times in the day).

I can see that ping.exe returns correctly that host is unreachable.

However, in my code, calling getaddrinfo succeeds for the same ip address, and I suspect it only queries the dns cache.

Is there a way to force getaddrinfo not to use dns cache, or another function that would bypass the dns cache

vb6.exe: GetObject and VB6 ActiveX exe

The VB6 help on GetObject says 'You can't use GetObject to obtain a reference to a id created with Visual Basic' (the very last sentence!). My VB6 GUI exposes objects as an ActiveX exe, for other components to manipulate. I want the other components to connect to the GUI that's already running, rather than start a new instance of the exe. I've found using GetObject does work, if you use this syntax:

Set myobj = GetObject('', 'ProjectName.ClassName')


It worries me that the help

monitor.exe: How do I monitor the status of an C# windows application?

Lets say I have a Windows application named app.exe, written in C# (Windows Forms), running unattended under any Windows OS (XP to 8).

I would like to monitor the status of the app:


Is the app still running or has it crashed
Has the app run into an internal error state


My idea is to set up a scheduled task in Windows (using the Task Scheduler) to run a Windows Console application, monitor.exe, every 15 minutes.
The monitor app will send an email with the status

spoolsv.exe: Spooler memory increases when System.Printing.Printqueue object is created

I am using System.Printing library for printing, Whenever i used to create Printqueue object for Printer which is installed on print server, There is sudden increase in spoolsv.exe process and it doesn't get released. I have tried finding the solution but didn't succeeded, so any of you came across this issue, then help me out.
Thanks in advance

Here is my code for creating Printqueue object

PrintServer printServer = new PrintServer(@'\' + printServerName);
PrintQueue printQu

msdtc.exe: MSDTC (Distributed Transaction Coordinator) Service Stops Unexpectedly

I am working on a Windows Server 2008, the MSDTC (Distributed Transaction Coordinator) Service Stops Unexpectedly and I cannot restart it again.

When I go to the event viewer this is the error message that I have got:
'A critical error occurred in an MS DTC component therefore the process is terminating. The category field identifies the component that encountered the error. Please contact Microsoft Product Support. Error Specifics: hr = 0x80070002, d: tmcomcomplusdtcdtcmsdtcsrccservic

smss.exe: custom search bar on my custom homepage

I need to constantly search files such as smss.exe at http://www.winpatrol.com/db/pluscloud/.

Is there a way I can make a customized searchbar on my custom homepage that will do this for me?

So if I type smss into the search bar it will take me to http://www.winpatrol.com/db/pluscloud/smss.html

I tried in pure HTML with GET requests and can't find a way to do it. I was thinking maybe there is a Javascript way or something.

Disclaimer
This web site and all information written here is for information purposes only, WITHOUT ANY VARANTY. YOU ARE USING THIS PAGES ON YOU OWN RISK. You should always verify the accuracy of information provided on this page. We pay a big attention to provide you with the correct information. However, many spyware and malware programs use filenames of usual, non-malware processes and DLLs. If we have included information about utility.exe that is inaccurate, we would appreciate your help by getting us know about your user review. Also, web links to software and DLL vendors are provided just for your conform, and we cannot guarantee its accuracy nor relevance with DLL or process listed on this page. We are not affiliated with this pages. We are not responsible for misprints on this site or changes occured since this page was published. The product, software and operating system names mentioned on this web site, can be copyrighted and registered trademarks of their owners.

utility.exe