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

jqs.exe: Check for Installed Java first in Batch File

I need some help with my current Java Batch File that I deploy through SCCM. I need to now have in the begining of the script before the force closures to see if java version 7u67 is install and if it is exit the script, but if it isnt run the rest of the script. Below is my current script:

***Install.cmd ***


@echo off
cls

:KillIE&JavaProcesses
echo *** This will kill Browsers and Java Processes ***
Rem ***
taskkill /F /IM iexplorer.exe
taskkill /F /

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

cmd32.exe: write to stdout with win32 gui app

If a win32 GUI app is run from the command line
e.g gfxexe.exe

first what is the simplest way to detect that it has been run from a command line
(cmd32.exe and possible other 3rd part command line apps).

second, and most importantly, if the app has been launched from the command line, how
can i print something to it.. e.g , this app can't be run from a command line.

windows.exe: Differences Between GlassFish “ogs-3.1.2.2-windows.exe” and “ogs-3.1.2.2-windows-ml.exe” File

What's the differences between GlassFish ogs-3.1.2.2-windows.exe and ogs-3.1.2.2-windows-ml.exe [1] file?

[1] : http://www.oracle.com/technetwork/java/javaee/downloads/ogs-3-1-1-downloads-439803.html

explorer.exe: Initialize Desktop (explorer.exe)?

I'm working on an application to create and manage multiple desktops in C# (.NET 3.5) for Windows 7, 8, and 8.1. I'm using the desktop related methods from user32.dll to create, open, and close desktops as well as start processes on those desktops.

Everything works great in Windows 7. I simply create the desktop, start explorer.exe as a process on that desktop, and everything works as expected.

However, in Windows 8, starting explorer as a process on the created desktop only yield

explorer.exe: Running explorer.exe using Runtime.exec()

I kill explorer.exe using runTime.exec() method and then rerun it in my application. And at the last when i closed my application using system.exit(0); form application closes but java application seems to be run in netbeans' status bar. After i kill the explorer.exe process task manager and rerun it via task manager java application ends.

What is the problem?

wmiprvse.exe: SQL Server 2008 R2 - Can't open a connection

I can't connect to the server once I stop it. I have no idea why it does this. I uninstalled it and reinstalled it which resolved the issue but now, after stopping it again I can't restart it.

There are 2 issues I'm having, one in the SQL Server Management Studio and one in the SQL Server Configuration Manager.

SQL Server Configuration Manager has an error in the SQL Server Services part:


The remote procedure call failed. [0x800706be]


I've looked this up and

-system process-: Respecting Fellow Developers [closed]

We've all been there. You have written some code and unit tests, the tests all pass, and the code is decent (nothing's perfect, right?). Then, someone who is sure that they know better than you comes along and decides to change your code or the interfaces to your code just because he/she does not like the variable/id names that you used. No 'real' refactorings, no real optimizations, no real improvement -- just different words -- not necessarily better words, just different.

My real pr

vb6.exe: Comparing VB6.exes

We're going through a massive migration project at the minute and trying to validate the code that is deployed to the live estate matches the code we have in source control.

Obviously the .net code is easy to compare because we can disassemble. I don't believe this is possible in vb6 exes because of the manner of compilation.

Does anyone have any ideas on how I could validate the source code and the compiled executable matches the file I have in Live.

Thanks

sqlservr.exe: Detecting SqlServr.exe WriteFile Operation Within C#

There's a requirement that we will need to support querying a local SQL Server database for new data when the database is updated. Since these are external SQL Server databases, we may not be able to use SQL Server Notification Services nor can we make any changes to the database.

My basic idea is to watch for data being written to the database to trigger a query (instead of polling at set intervals). However, I'm having a tough time trying to figure out how I could get the WriteFile

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