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
317
votes
6 answers

How to change users in TortoiseSVN

I was setting up another user to use our SVN repository. He didn't have a username/password, so I logged in with my credentials. We now have a username/password for him. How do I get TortoiseSVN to logout and forget the old password so I can…
Robert Deml
  • 12,390
  • 20
  • 65
  • 92
316
votes
15 answers

Is there a better Windows Console Window?

I find working on the command line in Windows frustrating, primarily because the console window is wretched to use compared to terminal applications on linux and OS X such as "rxvt", "xterm", or "Terminal". Major complaints: No standard…
Alana Storm
  • 164,128
  • 91
  • 395
  • 599
313
votes
27 answers

Create an empty file on the commandline in windows (like the linux touch command)

On a windows machine I get this error 'touch' is not recognized as an internal or external command, operable program or batch file. I was following these instructions which seem to be linux specific, but on a standard windows commandline it does…
CuriousAboutNode
  • 3,157
  • 2
  • 11
  • 6
313
votes
18 answers

Stop and Start a service via batch or cmd file?

How can I script a bat or cmd to stop and start a service reliably with error checking (or let me know that it wasn't successful for whatever reason)?
Keng
  • 52,011
  • 32
  • 81
  • 111
312
votes
14 answers

Get encoding of a file in Windows

This isn't really a programming question, is there a command line or Windows tool (Windows 7) to get the current encoding of a text file? Sure I can write a little C# app but I wanted to know if there is something already built in?
TheWebGuy
  • 11,429
  • 16
  • 52
  • 72
309
votes
9 answers

What exactly are DLL files, and how do they work?

How exactly do DLL files work? There seems to be an awful lot of them, but I don't know what they are or how they work. So, what's the deal with them?
stalepretzel
  • 15,543
  • 22
  • 76
  • 91
307
votes
25 answers

How to echo with different colors in the Windows command line

I know that the color bf command sets the colors of the whole command line window but I wanted to to print one single line in a different color.
rui
  • 11,015
  • 7
  • 46
  • 64
305
votes
21 answers

Keyboard shortcut to paste clipboard content into command prompt window (Win XP)

Is there a keyboard shortcut for pasting the content of the clipboard into a command prompt window on Windows XP (instead of using the right mouse button)? The typical Shift+Insert does not seem to work here.
sme
  • 5,673
  • 7
  • 32
  • 30
303
votes
6 answers

How to do something to each file in a directory with a batch script

How do you iterate over each file in a directory with a .bat or .cmd file? For simplicity please provide an answer that just echoes the filename or file path.
Brian R. Bondy
  • 339,232
  • 124
  • 596
  • 636
302
votes
19 answers

How to check if a process is running via a batch script

How can I check if an application is running from a batch (well cmd) file? I need to not launch another instance if a program is already running. (I can't change the app to make it single instance only.) Also the application could be running as any…
Matt Lacey
  • 65,560
  • 11
  • 91
  • 143
300
votes
11 answers

Using port number in Windows host file

After installing TeamViewer, I have changed the wampserver port to 8080, so the address is http://localhost:8080. For the host file located at C:\WINDOWS\system32\drivers\etc\, I have also made the change as below BEFORE 127.0.0.1 …
Charles Yeung
  • 38,347
  • 30
  • 90
  • 130
300
votes
18 answers

stop all instances of node.js server

This is my first time working with Node.js and I ran into this problem: I have started a Node server through the plugin of an IDE. Unfortunately, I cannot use the IDE's terminal. So I tried to run the script from the command line. This is the…
KA.
  • 4,220
  • 5
  • 26
  • 37
298
votes
22 answers

How do I start PowerShell from Windows Explorer?

Is there a way to start PowerShell in a specific folder from Windows Explorer, e.g. to right-click in a folder and have an option like "Open PowerShell in this Folder"? It's really annoying to have to change directories to my project folder the…
Josh Kodroff
  • 27,301
  • 27
  • 95
  • 148
298
votes
8 answers

What encoding/code page is cmd.exe using?

When I open cmd.exe on Windows, what encoding is it using? How can I check which encoding it is currently using? Does it depend on my regional setting or are there any environment variables to check? What happens when you type a file with a certain…
Dan Gøran Lunde
  • 5,148
  • 3
  • 26
  • 24
298
votes
3 answers

port forwarding in windows

I have two network board in my pc: The main one has the local ip -> 192.168.1.111 The secondary ones has the local ip -> 192.168.0.200 The main one has internet connection and the second one is connected to a device with the IP 192.168.0.33, it has…
user1256477
  • 10,763
  • 7
  • 38
  • 62