All Questions

668
votes
10answers
335481 views

How do I force my .NET application to run as administrator?

Once my program is installed on a client machine, how do I force my program to run as an administrator on Windows 7?
356
votes
17answers
1297129 views

How to set java_home on Windows 7?

I went to the Environment Variables in 'System' in the control panel and made two new variables, one for user variables and one for system variables. Both were named JAVA_HOME and both pointing to ...
3
votes
1answers
6126 views

How to set environment variables with spaces?

I need to set values to a environmental variable using a batch file. I wrote the script for this: @echo off set value="Hello world" setx -M srijani "%srijani%;%value%" It gives the error: ERROR: I...
60
votes
14answers
379583 views

How to run .jar file by double click on Windows 7 (64)

Running a .jar file in a command line works fine, but i am not able to run any .jar file by double clicking on my Windows 7 (64). It seems nothing happens after the double click. I tried the "ftype" ...
323
votes
19answers
107644 views

Git/Bash is extremely slow in Windows 7 x64

I've been using Git on both Windows and Ubuntu during the development of a small project, frequently flipping back and forth between the two. The issue I'm having is that Git/Bash consistently become...
129
votes
21answers
540315 views

How do I run a python program in the Command Prompt in Windows 7?

I'm [relatively] new to Python. I'm trying to figure out how to run Python programs with the Command Prompt on Windows 7. (I should have figured this out by now...) When I typed "python" into the com...
39
votes
7answers
82646 views

How to get main window handle from process id?

How to get main window handle from process id? I want to bring this window to the front. It works well in "Process Explorer".
113
votes
10answers
86442 views

HttpListener Access Denied

I am writing an HTTP server in C#. When I try to execute the function HttpListener.Start() I get an HttpListenerException saying "Access Denied". When I run the app in admin mode in windows 7 ...
136
votes
23answers
276134 views

The request was aborted: Could not create SSL/TLS secure channel

We are unable to connect to an HTTPS server using WebRequest because of this error message: The request was aborted: Could not create SSL/TLS secure channel. We know that the server doesn't have a v...
25
votes
9answers
22121 views

check whether Internet connection is available with C#

What is the easiest way to check whether internet connection is available programatically? EDIT: As suggested I tried using the following method, but it is always returning true. [Flags] enum Intern...

Previous Next