|
Use the Process Class[^] which allows you to run the command and capture its output to your program.
|
|
|
|
|
I see your repost, and raise you a self-reference: ProcessCommunicator[^]
You'll never get very far if all you do is follow instructions.
|
|
|
|
|
You can also send the output of the program to a text file, and then read that file
Corflags.exe "MyApplication.exe" > C:\Temp\Output.txt
Execute it with Process.Start .
|
|
|
|
|
can any one help me out in making check printing software
|
|
|
|
|
|
Many people can help but you need to ask a specific question.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I wrote a .net 4.0 WPF app for a client targeting Windows Server 2012 R2. He now also wants to run it on WinXP. He installed SP3, but the app only runs if he runs logs into the PC as admin.
I haven't worked with XP in a long time.
What do I need to do to get it running without logging in as admin?
Thanks
If it's not broken, fix it until it is
|
|
|
|
|
.NET 4.0 is supported on XP SP3, the problem is that XP SP3 is unsupported
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
|
.NET 4.0 is not supported on XP SP3.
.NET 3.5 is supported on XP.
Soooo either tell him XP isn't supported, Microsoft has ended support for it after all, or recompile your app on .NET 3.5 and hope you don't have to rewrite stuff where you've used .NET 4.0 specific stuff.
|
|
|
|
|
I know it's not supported, but can I get it to run without Admin mode?
If it's not broken, fix it until it is
|
|
|
|
|
That depends on what your code is doing. There are various things that require admin priv's to do.
|
|
|
|
|
Standard DB CRUD operations.
If it's not broken, fix it until it is
|
|
|
|
|
That's just about useless.
Without knowing more about what you're code is doing, exactly, when it crashes and what you're using, any error messages, ..., there's little anyone can do to help.
|
|
|
|
|
Sql Server?
Or is the db a file in a protected folder? Remember that modifying something in the "Program Files" folder requires admin-rights.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
SQL
If it's not broken, fix it until it is
|
|
|
|
|
SQL is a language; what database (server) are you talking to? SQL Server, MySQL, SQLite, SQL CE, Access?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Yes it is. It's also SQL Server - which is what you asked.
If it's not broken, fix it until it is
|
|
|
|
|
..and where is the *.mdf located? Write a small console-app that only does a select, try that - does it require admin-rights? Writing to local (config?) files? Where are those located?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
Whoops! My bad. I ended up looking at the 4.5 page.
|
|
|
|
|
Dave Kreskowiak wrote: .NET 4.0 is not supported on XP SP3.
http://www.microsoft.com/en-us/download/details.aspx?id=17718[^]See System Requirements->Supported Operating System
XP SP3 IS supported SP2 or before not!
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
Yeah, I know. I was accidentally looking at the .NET 4.5 page.
|
|
|
|
|
Yeah, I think I covered that adequately already.
|
|
|
|
|
Kevin Marois wrote: the app only runs if he runs logs into the PC as admin And what does happen if a "normal" user tries to start it? Error messages? What do the log files of your app tell you? Any entries in EventViewer?
Which type of .Net Framework 4: "full" or "client profile"?
|
|
|
|