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

cli.exe: Redis Timeout Expired message on GetClient call

I hate the questions that have 'Not Enough Info'. So I will try to give detailed information. And in this case it is code.

Server:
64 bit of https://github.com/MSOpenTech/redis/tree/2.6/bin/release

There are three ides:

DbOperationContext.cs: https://gist.github.com/glikoz/7119628

PerRequestLifeTimeManager.cs: https://gist.github.com/glikoz/7119699

RedisRepository.cs https://gist.github.com/glikoz/7119769

We are using Redis with Unity ..

In t

vmware.exe: VMWARE Workstation does not open any virtual machine [SOLVED]

I am trying to open a virtual machine with vmware workstation, but when I click on 'Open a virtual machine' and select the correct virtual machine file nothing happens (no error message is shown, nor focus on any other workstation tab).

After several attempts I could create a new Debian virtual machine, in case it only could open my own virtual machines, but when I shutdown that virtual machine (after its installation) I click on 'Open virtual machine', select the correct virtual machine

totalcmd.exe: total commander masks path variable

I have all java variables added. When I try to run cmd from within totalCommander and type 'path' I get this message:
PATH=nvInitDll; App c: otalcmd.exe - redirect success.

But when I try and run command line by cmd.exe and type 'path', everything is neat and right as it is specified, i.e the commands prints all paths as was specified in system variables. What's the problem, guys? Thank you so much in advance.

ntkrnlpa.exe: Windows service and continuous memory alloc

I have a windows service that launches a Thread. The service starts with SYSTEM ACCOUNT.

Inside the thread I use CoInitialize, because I have a XML object managed by an COM Object.

In some windows (7, 2008 std, not all) my service becomes to allocate memory continuous without any reason (12mb -> 50mb -> 100mb -> 500mb....) .

If I change the logon user of the service to a administrator user the problem stops. I cannot understand what is happening!

Using the Process Exp

mdnsresponder.exe: How does Windows know how to resolve mDNS queries?

When you install Bonjour for Windows you can resolve any '.local' mDNS name from anywhere in the system.

For example, you can 'ping some_computer.local' and mDNSResponder.exe (Bonjour/mDNS Daemon) will respond.

However, mDNS operates on port 5353 so how does Windows know how to resolve these DNS queries?

Is mDNSResponder.exe hooking into the Windows DNS Resolver somehow?

wrapper.exe: Append arbitrary jar to classpath using Java Service Wrapper from the command line?

I want to run my application using Java Service Wrapper and append something to the idpath from the command line.

So I have the command line:

wrapper.exe -c app.conf
wrapper.ignore_sequence_gaps=TRUE
wrapper.java.idpath.200=path/to/extra/jar
wrapper.debug=TRUE


But the extra jar is not in the idpath passed to my application.

dwm.exe: VB6 Drag and Drop Performance in Windows 8

I have a rather large VB6 application that features dragging and dropping controls between sub forms in an MDI application. The problem is the performance is really bad during the drag operation. You can see the element redrawing (slowly) as you drag it.

I first encountered this issue in Windows 7 and after some research concluded that it was a compatibility issue with the Aero interface. I was able to work around it by switching off the Aero effects. Now I am using Windows 8 the problem

php.exe: yiic - php.exe is not recognized command

I search for a lot of question here and in google also but still didnt get my answer.

i try as you can see in image, i dont know where's the error



My PHP path as shown in image below,



Any help please

ftp.exe: Why I cannot get the output of ftp.exe by code?

I execute the ftp.exe cmd through a C# System.Diagnostics.Process type. And I use the following code to get the 'ftp.exe' output after I programmatically enter a 'help' command. But I can only get the first line of the result. And I never get to the 'end' output part. The whole program seems blocked.

Process p = new Process();
p.StartInfo.FileName = @'C:WindowsSystem32ftp.exe';
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardInput = true;
p.S

rundll32.exe: Debugging a native dll using rundll32.exe , fail to load symbols

I'm writing a native dll that is due to run with rundll32.exe (that is obligated by our clients). I've using VS's debugging properties to define:

Command: c:windowssystem32 undll32.exe
Command Argument: $(TargetPath) , ENTRY_POINT


where ENTRY_POINT is an exported function of my dll, that obey the rundll32.exe interface.

This setup calls my function , but won't load any symbols and thus won't trigger any break point. I've learned that my function was called only afte

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