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
376
votes
4 answers

Get current batchfile directory

Firstly, I saw this topic but I couldn't understand that. Question : There is a batch file in D:\path\to\file.bat with following content : echo %cd% pause Output is : C:\ It must be D:\path\to What am I doing wrong?
Hamed Kamrava
  • 12,359
  • 34
  • 87
  • 125
375
votes
19 answers

Git on Windows: How do you set up a mergetool?

I've tried msysGit and Git on Cygwin. Both work just fine in and of themselves and both run gitk and git-gui perfectly. Now how the heck do I configure a mergetool? (Vimdiff works on Cygwin, but preferably I would like something a little more…
Jake
  • 15,007
  • 22
  • 70
  • 86
374
votes
9 answers

How to set commands output as a variable in a batch file

Is it possible to set a statement's output of a batch file to a variable, for example: findstr testing > %VARIABLE% echo %VARIABLE%
Dennis
  • 3,867
  • 5
  • 17
  • 7
373
votes
17 answers

How to run a hello.js file in Node.js on windows?

I am trying to run a hello world program written in javascript in a separate file named hello.js Currently running windows version of node.js. The code runs perfectly in console window but how do I reference the path in windows…
Mitul
  • 9,734
  • 4
  • 43
  • 60
371
votes
41 answers

'npm' is not recognized as internal or external command, operable program or batch file

I am completely new to nodejs. I am trying to get nodejs to work on my Windows 2008 box in order to install Karma which I would use for TDDing my AngularJs code. I have done the following steps so far Install using Chocolatey ==> npm is not…
Suhas
  • 7,919
  • 5
  • 34
  • 54
371
votes
38 answers

Where is git.exe located?

I have PyCharm and I am looking around trying to find git.exe to set it up with my repo. What is the PATH to git.exe?
Angus Moore
  • 4,051
  • 5
  • 18
  • 14
366
votes
22 answers

Docker for Windows error: "Hardware assisted virtualization and data execution protection must be enabled in the BIOS"

I've installed Docker and I'm getting this error when I run the GUI: Hardware assisted virtualization and data execution protection must be enabled in the BIOS Seems like a bug since Docker works like a charm from the command line, but I'm…
Julien
  • 4,434
  • 3
  • 16
  • 19
366
votes
14 answers

How to install and use "make" in Windows?

I'm following the instructions of someone whose repository I cloned to my machine. I want to use the make command as part of setting up the code environment, but I'm using Windows. I searched online, but I could only find a make.exe file, a…
Hashem Elezabi
  • 3,827
  • 3
  • 12
  • 7
363
votes
21 answers

Python not working in the command line of git bash

Python will not run in git bash (Windows). When I type python in the command line, it takes me to a blank line without saying that it has entered python 2.7.10 like its does in Powershell. It doesn't give me an error message, but python just doesn't…
Caroline Morris
  • 3,631
  • 3
  • 10
  • 5
360
votes
4 answers

How do I negate a condition in PowerShell?

How do I negate a conditional test in PowerShell? For example, if I want to check for the directory C:\Code, I can run: if (Test-Path C:\Code){ write "it exists!" } Is there a way to negate that condition, e.g. (non-working): if (Not (Test-Path…
Ben McCormack
  • 32,086
  • 48
  • 148
  • 223
360
votes
14 answers

Mount current directory as a volume in Docker on Windows 10

Description I am using Docker version 1.12.5 on Windows 10 via Hyper-V and want to use container executables as commands in the current path. I built a Docker image that is running fine, but I have a problem to mount the current path. The idea is to…
McGo
  • 3,792
  • 2
  • 13
  • 18
357
votes
8 answers

Run a task every x-minutes with Windows Task Scheduler

I'm trying to get Windows Task Scheduler to run a particular .exe every 10 minutes or so, but the options only allow for once a day execution. Is there a way I can get it to run a .exe every 10 or 20 minutes?
kacalapy
  • 9,806
  • 20
  • 74
  • 119
356
votes
13 answers

What is the Windows equivalent of the diff command?

I know that there is a post similar to this : here. I tried using the comp command like it mentioned, but if I have two files, one with data like "abcd" and the other with data "abcde", it just says the files are of different sizes. I wanted to know…
wittythotha
  • 3,956
  • 4
  • 19
  • 18
352
votes
6 answers

CSV in Python adding an extra carriage return, on Windows

import csv with open('test.csv', 'w') as outfile: writer = csv.writer(outfile, delimiter=',', quoting=csv.QUOTE_MINIMAL) writer.writerow(['hi', 'dude']) writer.writerow(['hi2', 'dude2']) The above code generates a file, test.csv, with…
apalopohapa
  • 4,983
  • 5
  • 27
  • 29
352
votes
16 answers

Batch script loop

I need to execute a command 100-200 times, and so far my research indicates that I would either have to copy/paste 100 copies of this command, OR use a for loop, but the for loop expects a list of items, hence I would need 200 files to operate on,…
Tom J Nowell
  • 9,588
  • 17
  • 63
  • 91