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
614
votes
15 answers

How do I uninstall a Windows service if the files do not exist anymore?

How do I uninstall a .NET Windows Service if the service files do not exist anymore? I installed a .NET Windows Service using InstallUtil. I have since deleted the files but forgot to run InstallUtil /u first, so the service is still listed in the…
Thomas Jespersen
  • 11,493
  • 14
  • 47
  • 55
603
votes
30 answers

How can you find and replace text in a file using the Windows command-line environment?

I am writing a batch file script using Windows command-line environment and want to change each occurrence of some text in a file (ex. "FOO") with another (ex. "BAR"). What is the simplest way to do that? Any built in functions?
Ray
  • 187,153
  • 97
  • 222
  • 204
600
votes
29 answers

How can I update npm on Windows?

I tried this: sudo npm cache clean -f sudo npm install -g n sudo n stable ...but it didn't work. How do I do this on Windows?
Jatin
  • 14,112
  • 16
  • 49
  • 78
595
votes
18 answers

How to create .pfx file from certificate and private key?

I need .pfx file to install https on website on IIS. I have two separate files: certificate (.cer or pem) and private key (.crt) but IIS accepts only .pfx files. I obviously installed certificate and it is available in certificate manager (mmc) but…
jlp
  • 9,800
  • 16
  • 53
  • 74
585
votes
13 answers

Create folder with batch but only if it doesn't already exist

Can anybody tell me how to do the following in in a Windows batch script? (*.bat): Create a folder only if it doesn't already exist In more detail, I want to create a folder named VTS on the C:\ drive, but only if that folder doesn't already…
Bill
  • 5,851
  • 2
  • 15
  • 3
565
votes
12 answers

Graphviz: How to go from .dot to a graph?

I can't seem to figure this out. I have a .dot file, which is valid according to the syntax. How do I use graphviz to convert this into an image? (note that I'm on Windows, not linux)
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
558
votes
3 answers

How to check if a file exists from inside a batch file

I need to run a utility only if a certain file exists. How do I do this in Windows batch?
sab
  • 9,767
  • 13
  • 44
  • 51
555
votes
42 answers

'pip' is not recognized as an internal or external command

I'm running into a weird error when trying to install Django on my computer. This is the sequence that I typed into my command line: C:\Python34> python get-pip.py Requirement already up-to-date: pip in c:\python34\lib\site-packages Cleaning…
user3597950
  • 9,201
  • 6
  • 26
  • 35
519
votes
20 answers

Aliases in Windows command prompt

I have added notepad++.exe to my Path in environment variables. Now in command prompt, notepad++.exe filename.txt opens the filename.txt. But I want to do just np filename.txt to open the file. I tried using DOSKEY np=notepad++. But it is just…
Romonov
  • 8,145
  • 14
  • 43
  • 55
503
votes
14 answers

In Windows cmd, how do I prompt for user input and use the result in another command?

I have a Windows .bat file which I would like to accept user input and then use the results of that input as part of the call to additional commands. For example, I'd like to accept a process ID from the user, and then run jstack against that ID,…
marc
492
votes
10 answers

Is there a /dev/null on Windows?

What is the equivalent of /dev/null on Windows?
Ove S
  • 5,205
  • 2
  • 18
  • 7
492
votes
26 answers

A Windows equivalent of the Unix tail command

I'm looking for the equivalent of the Unix 'tail' command that will allow me to watch the output of a log file while it is being written to.
Liam
  • 7,762
  • 4
  • 26
  • 27
486
votes
12 answers

Windows equivalent to UNIX pwd

How do I find the local path on Windows in a command prompt?
Joshua
  • 26,234
  • 22
  • 77
  • 106
483
votes
13 answers

How to get list of arguments?

I'd like to find a Windows batch counterpart to Bash's $@ that holds a list of all arguments passed into a script. Or I have to bother with shift?
wheleph
  • 7,974
  • 7
  • 40
  • 57
478
votes
31 answers

How to clear the interpreter console?

Like most Python developers, I typically keep a console window open with the Python interpreter running to test commands, dir() stuff, help() stuff, etc. Like any console, after a while the visible backlog of past commands and prints gets to be…
Soviut
  • 88,194
  • 49
  • 192
  • 260