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
243
votes
37 answers

Format date and time in a Windows batch script

In a Windows (Windows XP) batch script I need to format the current date and time for later use in files names, etc. It is similar to Stack Overflow question How to append a date in batch files, but with time in as well. I have this so far: echo…
laurie
  • 6,011
  • 4
  • 29
  • 22
241
votes
9 answers

Windows recursive grep command-line

I need to do a recursive grep in Windows, something like this in Unix/Linux: grep -i 'string' `find . -print` or the more-preferred method: find . -print | xargs grep -i 'string' I'm stuck with just cmd.exe, so I only have Windows built-in…
Andy White
  • 86,444
  • 48
  • 176
  • 211
241
votes
1 answer

How to list files in windows using command prompt (cmd). I've tried using ' ls ' as in Linux but it shows an error?

When I tried to use list ls on a Windows command prompt, the system doesn't recognize it. I already added C:\Windows\System32 in the path.
Abdullah
  • 2,531
  • 3
  • 13
  • 15
240
votes
2 answers

How can I show hidden files (starting with period) in NERDTree?

How can I make NERDTree show files that begin with an . (period)? I have a file named .hgignore in a project directory. If I browse to that directory using NERDTree, the file is not displayed within the tree. I am using gvim on Windows.
James Fassett
  • 40,306
  • 11
  • 38
  • 43
240
votes
19 answers

How to install both Python 2.x and Python 3.x in Windows

I do most of my programming in Python 3.x on Windows 7, but now I need to use the Python Imaging Library (PIL), ImageMagick, and wxPython, all of which require Python 2.x. Can I have both Python 2.x and Python 3.x installed in Windows 7? When I run…
239
votes
13 answers

What's the best free C++ profiler for Windows?

I'm looking for a profiler in order to find the bottleneck in my C++ code. I'd like to find a free, non-intrusive, and good profiling tool. I'm a game developer, and I use PIX for Xbox 360 and found it very good, but it's not free. I know the Intel…
ugasoft
  • 3,778
  • 7
  • 27
  • 23
239
votes
8 answers

How do I create my own URL protocol? (e.g. so://...)

I have seen: http://www... ftp://blah.blah... file://blah.blah... unreal://blah.blah... mailto://blah.blah... What is that first section where you see http and the like called? Can I register my own?
Michael Beck
  • 2,806
  • 3
  • 20
  • 22
239
votes
13 answers

Map a network drive to be used by a service

Suppose some Windows service uses code that wants mapped network drives and no UNC paths. How can I make the drive mapping available to the service's session when the service is started? Logging in as the service user and creating a persistent…
VoidPointer
  • 17,651
  • 15
  • 54
  • 58
239
votes
8 answers

how to change directory using Windows command line

I'm using cmd.exe (C:\WINDOWS\System32\cmd.exe) and I have to change my current directory to "D:\temp" i.e. temp folder in the D drive. When I try to cd nothing happens. C:\> cd D:\temp C:\> I don't know what else to do here. Even pressing tab key…
A. K.
  • 34,395
  • 15
  • 52
  • 89
238
votes
5 answers

Why do 64-bit DLLs go to System32 and 32-bit DLLs to SysWoW64 on 64-bit Windows?

I would like to know when do we need to place a file under C:\Windows\System32 or C:\Windows\SysWOW64, on a 64-bits windows system. I had two DLL's, one for 32-bit, one for 64-bit. Logically, I thought I'd place the 32-bit DLL under…
Ganesh Astroved
  • 2,421
  • 2
  • 17
  • 9
238
votes
16 answers

Best way to run scheduled tasks

Today we have built a console application for running the scheduled tasks for our ASP.NET website. But I think this approach is a bit error prone and difficult to maintain. How do you execute your scheduled task (in an windows/IIS/ASP.NET…
Niels Bosma
  • 11,758
  • 29
  • 89
  • 148
238
votes
2 answers

Checking if a folder exists using a .bat file

I would like to be able to check if a certain folder (FolderA) exists and if so, for a message to be displayed and then the batch file to be exited. If FolderA does not exist, I would then like to check if another folder (FolderB) exists. If…
user3179825
  • 2,443
  • 2
  • 12
  • 4
237
votes
4 answers

What does #defining WIN32_LEAN_AND_MEAN exclude exactly?

I found the explanation defining WIN32_LEAN_AND_MEAN "reduces the size of the Win32 header files by excluding some of the less frequently used APIs". Somewhere else I read that it speeds up the build process. So what does WIN32_LEAN_AND_MEAN…
fishfood
  • 4,092
  • 4
  • 28
  • 35
236
votes
15 answers

Environment variable is too large on Windows 10

I have recently upgraded to Windows 10 from Windows 8.1. Now I wanted to set an environment variable for my new installation of Apache Maven. Each time I created the user variable, things were fine. However, I also need to create the system variable…
olasammy
  • 6,676
  • 4
  • 26
  • 32
234
votes
21 answers

Docker - failed to compute cache key: not found - runs fine in Visual Studio

I've generated a Dockerfile with Visual Studio. It runs in Visual Studio just fine and now I'm trying to build it from Windows itself (docker build ., and I tried many combinations). Yet I get the following error: > [build 3/7] COPY…