Questions tagged [windows]

Writing software specific to the Microsoft Windows operating system: APIs, behaviours, etc. GENERAL WINDOWS SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com

General support questions for Windows should be asked on Super User

Windows is a family of graphical operating systems developed by Microsoft for server, client, and mobile platforms.

Recent Versions

  • Windows 10 was released on July 29, 2015.

  • Windows 8.1, the first significant update to Windows 8, was released on October 17, 2013.

  • Windows 8, the successor to Windows 7, was released to the market on October 26, 2012. It was designed to be used on both tablets and conventional PCs.

Specific Version Tags

If your question relates to using Windows APIs or Windows-specific behavior with a particular version of Windows, use the tag for that particular version – for example:

Other Related Tags

Resources

166791 questions
437
votes
41 answers

How can I open a cmd window in a specific location?

How can I open a cmd window in a specific location without having to navigate all the way to the directory I want?
Haim Bender
  • 7,937
  • 10
  • 53
  • 55
431
votes
2 answers

How to get a path to the desktop for current user in C#?

How do I get a path to the desktop for current user in C#? The only thing I could find was the VB.NET-only class SpecialDirectories, which has this property: My.Computer.FileSystem.SpecialDirectories.Desktop How can I do this in C#?
Cristian Diaconescu
  • 34,633
  • 32
  • 143
  • 233
426
votes
8 answers

How to get the path of the batch script in Windows?

I know that %0 contains the full path of the batch script, e.g. c:\path\to\my\file\abc.bat I want path to be equal to c:\path\to\my\file. How can I achieve that?
Misha Moroshko
  • 166,356
  • 226
  • 505
  • 746
423
votes
11 answers

IIS Manager in Windows 10

How do you open IIS (Internet Information Services) Manager using Windows 10? I have installed the developer preview of Windows 10 and can't seem to find IIS Manager? It is not in Control Panel > Administrative Tools. When I browse to the…
MattyMerrix
  • 10,793
  • 5
  • 22
  • 32
419
votes
12 answers

How to install OpenJDK 11 on Windows?

In the past, Oracle used to publish an executable installers for Windows that would: Unpack files Add registry keys indicating the installed version and path Add the JRE to the system PATH Register an uninstaller with Windows. As of Java 11, the…
Gili
  • 86,244
  • 97
  • 390
  • 689
410
votes
28 answers

How do I watch a file for changes?

I have a log file being written by another process which I want to watch for changes. Each time a change occurs I'd like to read the new data in to do some processing on it. What's the best way to do this? I was hoping there'd be some sort of hook…
Jon Cage
  • 36,366
  • 38
  • 137
  • 215
410
votes
9 answers

What does %~d0 mean in a Windows batch file?

I'm looking at a batch file which defines the following variables: set _SCRIPT_DRIVE=%~d0 set _SCRIPT_PATH=%~p0 What do %~d0 or %~p0 actually mean? Is there a set of well-known values for things like current directory, drive, parameters to a…
Chris Smith
  • 18,244
  • 13
  • 59
  • 81
404
votes
23 answers

How can I find where Python is installed on Windows?

I want to find out my Python installation path on Windows. For example: C:\Python25 How can I find where Python is installed?
Fang-Pen Lin
  • 13,420
  • 15
  • 66
  • 96
403
votes
11 answers

Really killing a process in Windows

Occasionally a program on a Windows machine goes crazy and just hangs. So I'll call up the task manager and hit the "End Process" button for it. However, this doesn't always work; if I try it enough times then it'll usually die eventually, but I'd…
Eli Courtwright
  • 186,300
  • 67
  • 213
  • 256
400
votes
30 answers

"NODE_ENV" is not recognized as an internal or external command, operable command or batch file

I'm trying to setup an environment for a Node.js app. but I'm getting this error every time. "NODE_ENV" is not recognized as an internal or external command, operable command or batch file. What does this mean and how can I solve this…
krozero
  • 5,929
  • 3
  • 21
  • 33
398
votes
25 answers

How do I find where JDK is installed on my windows machine?

I need to know where JDK is located on my machine. On running Java -version in cmd, it shows the version as '1.6.xx'. To find the location of this SDK on my machine I tried using echo %JAVA_HOME% but it is only showing 'JAVA_HOME' (as there is no…
Ashine
  • 4,517
  • 3
  • 24
  • 26
390
votes
16 answers

How to delete files/subfolders in a specific directory at the command prompt in Windows

Say, there is a variable called %pathtofolder%, as it makes it clear it is a full path of a folder. I want to delete every single file and subfolder in this directory, but not the directory itself. But, there might be an error like 'this file/folder…
Deniz Zoeteman
  • 9,691
  • 26
  • 70
  • 97
390
votes
10 answers

How to checkout a specific Subversion revision from the command line?

I want to checkout a specific revision of a folder in Subversion using the command line. I don't see an option for specifying the revision number in TortoiseProc.exe, TortoiseProc.exe /command:checkout How do I get the revision I want? Is…
ranja
388
votes
12 answers

How to stop a PowerShell script on the first error?

I want my PowerShell script to stop when any of the commands I run fail (like set -e in bash). I'm using both Powershell commands (New-Object System.Net.WebClient) and programs (.\setup.exe).
Andres Riofrio
  • 9,851
  • 7
  • 40
  • 60
376
votes
15 answers

Git for Windows: .bashrc or equivalent configuration files for Git Bash shell

I've just installed Git for Windows and am delighted to see that it installs Bash. I want to customise the shell in the same way I can under Linux (e.g. set up aliases like ll for ls -l), but I can't seem to find .bashrc or equivalent configuration…
iftheshoefritz
  • 5,829
  • 2
  • 34
  • 41