In windows using C#, how to get the installation path of a software(for example consider nunit or any other software like MS word etc) from my project.? Also how to set the path variables that we set in Environment variables so that we can run the application just by giving in command prompt.
Like if i install Nunit in "C:\Program File...
I have a command-line executable which I need to run from Java on Windows XP. It uses files as input and output. But I want to avoid the overhead of file IO, so I thought of an in-memory RAM file system.
NetBSD has mount_mfs.
Could you recommend the most convenient way of doing this?
...
How can i find the execution path of a installed software in c# for eg media player ,vlc player . i just need to find their execution path . if i have a vlc player installed in my D drive . how do i find the path of the VLC.exe from my c# coding
...
I know that the following should work:
Environment.GetEnvironmentVariable("windir", EnvironmentVariableTarget.Machine)
My problem with this call is that if for some reason someone decided to remove the "windir" Env Var , this won't work.
Is there an even more secure way to get the System drive?
...
Hi guys, how can we query the NT/Users database for all users on the machine?
...
Is it possible to get Windows Server 2003 hosted with options similar to Linux hosting at Slicehost and Linode? Need to set up a test server for a few months to see if its feasible to create a plugin for MS Exchange Server.
I'd needs some for of graphical remote access and naturally keep costs as low as possible.
...
I've been battling for two days tracking down a mysterious error when compiling an ASP.NET website. The error is the (quite famous) CS0016: "Unable to write to output file [filename] - directory is invalid".
I have discovered after two days of debugging that the cause of my problem is that the NetworkService somehow does not have the ne...
Maybe its a very dumb question but I hope you can give me some answers.
I have a commercial application which uses Qt3 for its GUI and an embedded Python interpreter (command line) for scripting. I want to write a custom plugin for this application which uses Qt4. The plugin is mainly a subclassed QMainWindow-class that is linked into a...
I’m looking for recommendations of how to authenticate user/password combination and verify group association across a number of differing operating systems. Basically I have a C# application that is working in both MS Visual Studio C# and Mono C# and I need to add an authentication mechanism to it to support Windows, Linux, and MacOSX....
Hi guys,
I am trying to build a desktop app. The biggest requirement is that it should be as miniscule as possible. For Windows users, is it better to build it in .NET or WinAPI? I am not from software background so pardon me if this is a non-sensical question, but I have heard that with .NET, there is a chance that some Windows users ma...
how to change the ACLs from c++?
can anyone help me to do the folowing from c++ without any confirmations:
cacls c:\personal\file.txt /d everyone ?
...
Is it possible in managed code to get a reference to an already running process (COM+ component) and call methods on it? Instead of instantiating a new object, is there a way to point to an already running instance of a COM object so that the .net code has a reference to the running process just as if it had instantiated it - to call me...
What is the best way to generate a unique hardware ID on Microsoft Windows with C++ that is not easily spoofable (with for example changing the MAC Address)?
...
Possible Duplicate:
How to call external command in Python
I'm writing a Python script on a windows machine. I need to launch another application "OtherApp.exe". What is the most suitable way to do so?
Till now I've been looking at os.system() or os.execl() and they don't quite look appropriate (I don't even know if the latter...
Say we have an out-proc COM server and a client. The client calls a method in the server and unexpectedly terminates. Is there a way for the server to detect this and interrupt the method?
...
I have an app which uses a keyboard hook procedure in a library. The wParam in the hook for one message is 255 which we think is "(reserved / OEMClear)". I'd like to work out the source of this message as it causes my application to crash in the library, and given it shouldn't be happening it would be good to identify it. The message com...
I want to unzip a .zip file using VBScript, only it's always a new computer with no external applications on it. Now I know Windows XP and 2003 have an internal .zip folder option, so I guess I can use it via VBScript in order to extract the file.
How do I do it?
I tried:
Set objShell = CreateObject("Shell.Application")
Set SrcFldr =...
Control Panel -> Security Center
I really like the components/controls which are used to show if a firewall or the Automatic Updates are enabled.
Are these reusable controls in C# or Delphi?
...
How can I tell if a method I am writing in managed code is being call from an interactive app vs a windows service?
...
Hi,
I am developing on a Windows machine using Eclipse in C code.
All the files are physically located on a Linux server.
I am using Eclipse only for editing and code browsing.
When I want to compile, I open a terminal and telnet to the Linux server from which I call a file that sets up few variables and eventually invoke a "make" comm...